forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4eada20
committed
Add has_largeobject_privilege function.
This function checks whether a user has specific privileges on a large object,identified by OID. The user can be provided by name, OID,or default to the current user. If the specified large object doesn't exist,the function returns NULL. It raises an error for a non-existent user name.This behavior is basically consistent with other privilege inquiry functionslike has_table_privilege.Bump catalog version.Author: Yugo NagataReviewed-by: Fujii MasaoDiscussion:https://postgr.es/m/20240702163444.ab586f6075e502eb84f11b1a@sranhm.sraoss.co.jp1 parent412229d commit4eada20
File tree
6 files changed
+376
-1
lines changed- doc/src/sgml
- src
- backend/utils/adt
- include/catalog
- test/regress
- expected
- sql
6 files changed
+376
-1
lines changedLines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25117 | 25117 |
| |
25118 | 25118 |
| |
25119 | 25119 |
| |
| 25120 | + | |
| 25121 | + | |
| 25122 | + | |
| 25123 | + | |
| 25124 | + | |
| 25125 | + | |
| 25126 | + | |
| 25127 | + | |
| 25128 | + | |
| 25129 | + | |
| 25130 | + | |
| 25131 | + | |
| 25132 | + | |
| 25133 | + | |
| 25134 | + | |
| 25135 | + | |
| 25136 | + | |
| 25137 | + | |
25120 | 25138 |
| |
25121 | 25139 |
| |
25122 | 25140 |
| |
|
Lines changed: 140 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| 43 | + | |
42 | 44 |
| |
43 | 45 |
| |
44 | 46 |
| |
45 | 47 |
| |
46 | 48 |
| |
47 | 49 |
| |
48 | 50 |
| |
| 51 | + | |
49 | 52 |
| |
50 | 53 |
| |
51 | 54 |
| |
| |||
124 | 127 |
| |
125 | 128 |
| |
126 | 129 |
| |
| 130 | + | |
127 | 131 |
| |
128 | 132 |
| |
129 | 133 |
| |
| |||
4663 | 4667 |
| |
4664 | 4668 |
| |
4665 | 4669 |
| |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
| 4683 | + | |
| 4684 | + | |
| 4685 | + | |
| 4686 | + | |
| 4687 | + | |
| 4688 | + | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
| 4695 | + | |
| 4696 | + | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
| 4716 | + | |
| 4717 | + | |
| 4718 | + | |
| 4719 | + | |
| 4720 | + | |
| 4721 | + | |
| 4722 | + | |
| 4723 | + | |
| 4724 | + | |
| 4725 | + | |
| 4726 | + | |
| 4727 | + | |
| 4728 | + | |
| 4729 | + | |
| 4730 | + | |
| 4731 | + | |
| 4732 | + | |
| 4733 | + | |
| 4734 | + | |
| 4735 | + | |
| 4736 | + | |
| 4737 | + | |
| 4738 | + | |
| 4739 | + | |
| 4740 | + | |
| 4741 | + | |
| 4742 | + | |
| 4743 | + | |
| 4744 | + | |
| 4745 | + | |
| 4746 | + | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
| 4750 | + | |
| 4751 | + | |
| 4752 | + | |
| 4753 | + | |
| 4754 | + | |
| 4755 | + | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
| 4759 | + | |
| 4760 | + | |
| 4761 | + | |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
| 4776 | + | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
| 4786 | + | |
| 4787 | + | |
| 4788 | + | |
| 4789 | + | |
| 4790 | + | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
| 4796 | + | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
| 4800 | + | |
| 4801 | + | |
| 4802 | + | |
| 4803 | + | |
| 4804 | + | |
| 4805 | + | |
4666 | 4806 |
| |
4667 | 4807 |
| |
4668 | 4808 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5369 | 5369 |
| |
5370 | 5370 |
| |
5371 | 5371 |
| |
| 5372 | + | |
| 5373 | + | |
| 5374 | + | |
| 5375 | + | |
| 5376 | + | |
| 5377 | + | |
| 5378 | + | |
| 5379 | + | |
| 5380 | + | |
| 5381 | + | |
| 5382 | + | |
| 5383 | + | |
| 5384 | + | |
5372 | 5385 |
| |
5373 | 5386 |
| |
5374 | 5387 |
| |
|
0 commit comments
Comments
(0)