forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit056f52d
committed
Properly schema-qualify additional object types in getObjectDescription().
Collations, conversions, extended statistics objects (in >= v10),and all four types of text search objects have schema-qualified names.getObjectDescription() ignored that and would emit just the base name ofthe object, potentially producing wrong or at least highly misleadingoutput. Fix it to add the schema name whenever the object is not "visible"in the current search path, as is the rule for other schema-qualifiableobject types.Although in common situations the output won't change, this seems to me(tgl) to be a bug worthy of back-patching, hence do so.Kyotaro Horiguchi, per a complaint from meDiscussion:https://postgr.es/m/20180522.182020.114074746.horiguchi.kyotaro@lab.ntt.co.jp1 parent4431c94 commit056f52d
File tree
2 files changed
+84
-13
lines changed- src
- backend/catalog
- test/regress/expected
2 files changed
+84
-13
lines changedLines changed: 79 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2738 | 2738 |
| |
2739 | 2739 |
| |
2740 | 2740 |
| |
| 2741 | + | |
2741 | 2742 |
| |
2742 | 2743 |
| |
2743 | 2744 |
| |
2744 | 2745 |
| |
2745 | 2746 |
| |
2746 | 2747 |
| |
2747 | 2748 |
| |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
2748 | 2756 |
| |
2749 |
| - | |
| 2757 | + | |
| 2758 | + | |
2750 | 2759 |
| |
2751 | 2760 |
| |
2752 | 2761 |
| |
| |||
2786 | 2795 |
| |
2787 | 2796 |
| |
2788 | 2797 |
| |
| 2798 | + | |
| 2799 | + | |
2789 | 2800 |
| |
2790 | 2801 |
| |
2791 | 2802 |
| |
2792 | 2803 |
| |
2793 | 2804 |
| |
2794 | 2805 |
| |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
2795 | 2814 |
| |
2796 |
| - | |
| 2815 | + | |
| 2816 | + | |
2797 | 2817 |
| |
2798 | 2818 |
| |
2799 | 2819 |
| |
| |||
3095 | 3115 |
| |
3096 | 3116 |
| |
3097 | 3117 |
| |
| 3118 | + | |
3098 | 3119 |
| |
3099 | 3120 |
| |
3100 | 3121 |
| |
3101 | 3122 |
| |
3102 | 3123 |
| |
3103 | 3124 |
| |
3104 |
| - | |
3105 | 3125 |
| |
3106 | 3126 |
| |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
3107 | 3133 |
| |
3108 |
| - | |
| 3134 | + | |
| 3135 | + | |
3109 | 3136 |
| |
3110 | 3137 |
| |
3111 | 3138 |
| |
| |||
3114 | 3141 |
| |
3115 | 3142 |
| |
3116 | 3143 |
| |
| 3144 | + | |
| 3145 | + | |
3117 | 3146 |
| |
3118 | 3147 |
| |
3119 | 3148 |
| |
3120 | 3149 |
| |
3121 | 3150 |
| |
3122 | 3151 |
| |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
3123 | 3160 |
| |
3124 |
| - | |
| 3161 | + | |
| 3162 | + | |
3125 | 3163 |
| |
3126 | 3164 |
| |
3127 | 3165 |
| |
3128 | 3166 |
| |
3129 | 3167 |
| |
3130 | 3168 |
| |
3131 | 3169 |
| |
| 3170 | + | |
| 3171 | + | |
3132 | 3172 |
| |
3133 | 3173 |
| |
3134 | 3174 |
| |
3135 | 3175 |
| |
3136 | 3176 |
| |
3137 | 3177 |
| |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
3138 | 3186 |
| |
3139 |
| - | |
| 3187 | + | |
| 3188 | + | |
3140 | 3189 |
| |
3141 | 3190 |
| |
3142 | 3191 |
| |
3143 | 3192 |
| |
3144 | 3193 |
| |
3145 | 3194 |
| |
3146 | 3195 |
| |
| 3196 | + | |
| 3197 | + | |
3147 | 3198 |
| |
3148 | 3199 |
| |
3149 | 3200 |
| |
3150 | 3201 |
| |
3151 | 3202 |
| |
3152 | 3203 |
| |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
3153 | 3212 |
| |
3154 |
| - | |
| 3213 | + | |
| 3214 | + | |
3155 | 3215 |
| |
3156 | 3216 |
| |
3157 | 3217 |
| |
3158 | 3218 |
| |
3159 | 3219 |
| |
3160 | 3220 |
| |
3161 | 3221 |
| |
| 3222 | + | |
| 3223 | + | |
3162 | 3224 |
| |
3163 | 3225 |
| |
3164 | 3226 |
| |
3165 | 3227 |
| |
3166 | 3228 |
| |
3167 | 3229 |
| |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
3168 | 3238 |
| |
3169 |
| - | |
| 3239 | + | |
| 3240 | + | |
3170 | 3241 |
| |
3171 | 3242 |
| |
3172 | 3243 |
| |
|
Lines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2680 | 2680 |
| |
2681 | 2681 |
| |
2682 | 2682 |
| |
2683 |
| - | |
2684 |
| - | |
2685 |
| - | |
2686 |
| - | |
2687 |
| - | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
2688 | 2688 |
| |
2689 | 2689 |
| |
2690 | 2690 |
| |
|
0 commit comments
Comments
(0)