forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit629f861
committed
Rethink function argument sorting in pg_dump.
Commit7b583b2 created an unnecessarydump failure hazard by applying pg_get_function_identity_arguments()to every function in the database, even those that won't get dumped.This could result in snapshot-related problems if concurrent sessions are,for example, creating and dropping temporary functions, as noted by MarkoTiikkaja in bug #12832. While this is by no means pg_dump's only suchissue with concurrent DDL, it's unfortunate that we added a new failuremode for cases that used to work, and even more so that the failure wascreated for basically cosmetic reasons (ie, to sort overloaded functionsmore deterministically).To fix, revert that patch and instead sort function arguments usinginformation that pg_dump has available anyway, namely the names of theargument types. This will produce a slightly different sort ordering foroverloaded functions than the previous coding; but applying strcmpdirectly to the output of pg_get_function_identity_arguments really wasa bit odd anyway. The sorting will still be name-based and henceindependent of possibly-installation-specific OID assignments. A smalladditional benefit is that sorting now works regardless of server version.Back-patch to 9.3, where the previous commit appeared.1 parent0deecc2 commit629f861
3 files changed
+22
-49
lines changedLines changed: 2 additions & 45 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3951 | 3951 |
| |
3952 | 3952 |
| |
3953 | 3953 |
| |
3954 |
| - | |
3955 | 3954 |
| |
3956 | 3955 |
| |
3957 | 3956 |
| |
| |||
3961 | 3960 |
| |
3962 | 3961 |
| |
3963 | 3962 |
| |
3964 |
| - | |
| 3963 | + | |
3965 | 3964 |
| |
3966 | 3965 |
| |
3967 | 3966 |
| |
3968 | 3967 |
| |
3969 |
| - | |
3970 | 3968 |
| |
3971 | 3969 |
| |
3972 | 3970 |
| |
| |||
3984 | 3982 |
| |
3985 | 3983 |
| |
3986 | 3984 |
| |
3987 |
| - | |
3988 |
| - | |
3989 |
| - | |
3990 |
| - | |
3991 |
| - | |
3992 |
| - | |
3993 |
| - | |
3994 |
| - | |
3995 |
| - | |
3996 |
| - | |
3997 |
| - | |
3998 |
| - | |
3999 |
| - | |
4000 |
| - | |
4001 |
| - | |
4002 | 3985 |
| |
4003 | 3986 |
| |
4004 | 3987 |
| |
4005 | 3988 |
| |
4006 | 3989 |
| |
4007 | 3990 |
| |
4008 |
| - | |
4009 | 3991 |
| |
4010 | 3992 |
| |
4011 | 3993 |
| |
| |||
4020 | 4002 |
| |
4021 | 4003 |
| |
4022 | 4004 |
| |
4023 |
| - | |
4024 | 4005 |
| |
4025 | 4006 |
| |
4026 | 4007 |
| |
| |||
4036 | 4017 |
| |
4037 | 4018 |
| |
4038 | 4019 |
| |
4039 |
| - | |
4040 | 4020 |
| |
4041 | 4021 |
| |
4042 | 4022 |
| |
| |||
4060 | 4040 |
| |
4061 | 4041 |
| |
4062 | 4042 |
| |
4063 |
| - | |
4064 | 4043 |
| |
4065 | 4044 |
| |
4066 | 4045 |
| |
| |||
4080 | 4059 |
| |
4081 | 4060 |
| |
4082 | 4061 |
| |
4083 |
| - | |
4084 | 4062 |
| |
4085 | 4063 |
| |
4086 | 4064 |
| |
| |||
4132 | 4110 |
| |
4133 | 4111 |
| |
4134 | 4112 |
| |
4135 |
| - | |
4136 | 4113 |
| |
4137 | 4114 |
| |
4138 | 4115 |
| |
| |||
4153 | 4130 |
| |
4154 | 4131 |
| |
4155 | 4132 |
| |
4156 |
| - | |
| 4133 | + | |
4157 | 4134 |
| |
4158 | 4135 |
| |
4159 | 4136 |
| |
4160 | 4137 |
| |
4161 | 4138 |
| |
4162 |
| - | |
4163 | 4139 |
| |
4164 | 4140 |
| |
4165 | 4141 |
| |
| |||
4181 | 4157 |
| |
4182 | 4158 |
| |
4183 | 4159 |
| |
4184 |
| - | |
4185 |
| - | |
4186 |
| - | |
4187 |
| - | |
4188 |
| - | |
4189 |
| - | |
4190 |
| - | |
4191 |
| - | |
4192 |
| - | |
4193 |
| - | |
4194 |
| - | |
4195 |
| - | |
4196 |
| - | |
4197 |
| - | |
4198 |
| - | |
4199 | 4160 |
| |
4200 | 4161 |
| |
4201 | 4162 |
| |
4202 | 4163 |
| |
4203 | 4164 |
| |
4204 | 4165 |
| |
4205 | 4166 |
| |
4206 |
| - | |
4207 | 4167 |
| |
4208 | 4168 |
| |
4209 | 4169 |
| |
| |||
4220 | 4180 |
| |
4221 | 4181 |
| |
4222 | 4182 |
| |
4223 |
| - | |
4224 | 4183 |
| |
4225 | 4184 |
| |
4226 | 4185 |
| |
| |||
4246 | 4205 |
| |
4247 | 4206 |
| |
4248 | 4207 |
| |
4249 |
| - | |
4250 | 4208 |
| |
4251 | 4209 |
| |
4252 | 4210 |
| |
| |||
4262 | 4220 |
| |
4263 | 4221 |
| |
4264 | 4222 |
| |
4265 |
| - | |
4266 | 4223 |
| |
4267 | 4224 |
| |
4268 | 4225 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
187 |
| - | |
188 | 187 |
| |
189 | 188 |
| |
190 | 189 |
| |
|
Lines changed: 20 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
287 | 287 |
| |
288 | 288 |
| |
289 | 289 |
| |
| 290 | + | |
290 | 291 |
| |
291 | 292 |
| |
292 | 293 |
| |
293 | 294 |
| |
294 |
| - | |
295 |
| - | |
296 |
| - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
297 | 314 |
| |
298 | 315 |
| |
299 | 316 |
| |
|
0 commit comments
Comments
(0)