- Notifications
You must be signed in to change notification settings - Fork5
Commit880bfc3
committed
Silently ignore any nonexistent schemas that are listed in search_path.
Previously we attempted to throw an error or at least warning for missingschemas, but this was done inconsistently because of implementationrestrictions (in many cases, GUC settings are applied outside transactionsso that we can't do system catalog lookups). Furthermore, there wereexceptions to the rule even in the beginning, and we'd been poking moreand more holes in it as time went on, because it turns out that there arelots of use-cases for having some irrelevant items in a common search_pathvalue. It seems better to just adopt a philosophy similar to what's alwaysbeen done with Unix PATH settings, wherein nonexistent or unreadabledirectories are silently ignored.This commit also fixes the documentation to point out that schemas forwhich the user lacks USAGE privilege are silently ignored. That's alwaysbeen true but was previously not documented.This is mostly in response to Robert Haas' complaint that 9.1 started tothrow errors or warnings for missing schemas in cases where prior releaseshad not. We won't adopt such a significant behavioral change in a backbranch, so something different will be needed in 9.1.1 parentb035cb9 commit880bfc3
File tree
4 files changed
+62
-69
lines changed- doc/src/sgml
- src
- backend/catalog
- test/regress
- expected
- sql
4 files changed
+62
-69
lines changedLines changed: 16 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4670 | 4670 |
| |
4671 | 4671 |
| |
4672 | 4672 |
| |
4673 |
| - | |
4674 |
| - | |
4675 |
| - | |
4676 |
| - | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
| 4683 | + | |
4677 | 4684 |
| |
4678 | 4685 |
| |
4679 | 4686 |
| |
| |||
4697 | 4704 |
| |
4698 | 4705 |
| |
4699 | 4706 |
| |
4700 |
| - | |
4701 |
| - | |
4702 |
| - | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
4703 | 4710 |
| |
4704 | 4711 |
| |
4705 | 4712 |
| |
4706 | 4713 |
| |
4707 |
| - | |
4708 |
| - | |
4709 |
| - | |
| 4714 | + | |
| 4715 | + | |
4710 | 4716 |
| |
4711 | 4717 |
| |
4712 | 4718 |
| |
|
Lines changed: 7 additions & 44 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3773 | 3773 |
| |
3774 | 3774 |
| |
3775 | 3775 |
| |
3776 |
| - | |
| 3776 | + | |
3777 | 3777 |
| |
3778 | 3778 |
| |
3779 | 3779 |
| |
3780 |
| - | |
3781 | 3780 |
| |
3782 | 3781 |
| |
3783 |
| - | |
3784 | 3782 |
| |
3785 | 3783 |
| |
3786 | 3784 |
| |
| |||
3796 | 3794 |
| |
3797 | 3795 |
| |
3798 | 3796 |
| |
3799 |
| - | |
3800 |
| - | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
3801 | 3802 |
| |
3802 |
| - | |
3803 |
| - | |
3804 |
| - | |
3805 |
| - | |
3806 |
| - | |
3807 |
| - | |
3808 |
| - | |
3809 |
| - | |
3810 |
| - | |
3811 |
| - | |
3812 |
| - | |
3813 |
| - | |
3814 |
| - | |
3815 |
| - | |
3816 |
| - | |
3817 |
| - | |
3818 |
| - | |
3819 |
| - | |
3820 |
| - | |
3821 |
| - | |
3822 |
| - | |
3823 |
| - | |
3824 |
| - | |
3825 |
| - | |
3826 |
| - | |
3827 |
| - | |
3828 |
| - | |
3829 |
| - | |
3830 |
| - | |
3831 |
| - | |
3832 |
| - | |
3833 |
| - | |
3834 |
| - | |
3835 |
| - | |
3836 |
| - | |
3837 |
| - | |
3838 |
| - | |
3839 |
| - | |
3840 | 3803 |
| |
3841 | 3804 |
| |
3842 | 3805 |
| |
3843 | 3806 |
| |
3844 |
| - | |
| 3807 | + | |
3845 | 3808 |
| |
3846 | 3809 |
| |
3847 | 3810 |
| |
|
Lines changed: 26 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
605 | 605 |
| |
606 | 606 |
| |
607 | 607 |
| |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
608 | 633 |
| |
609 | 634 |
| |
610 | 635 |
| |
| |||
617 | 642 |
| |
618 | 643 |
| |
619 | 644 |
| |
620 |
| - | |
621 |
| - | |
622 |
| - | |
623 |
| - | |
624 |
| - | |
625 |
| - | |
626 |
| - | |
627 |
| - | |
| 645 | + | |
628 | 646 |
| |
629 | 647 |
| |
630 | 648 |
| |
|
Lines changed: 13 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
185 | 197 |
| |
186 | 198 |
| |
187 | 199 |
| |
| |||
194 | 206 |
| |
195 | 207 |
| |
196 | 208 |
| |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
| 209 | + | |
204 | 210 |
| |
205 | 211 |
| |
206 | 212 |
| |
|
0 commit comments
Comments
(0)