forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3b50503
committed
Fix logical replication's ideas about which type OIDs are built-in.
Only hand-assigned type OIDs should be presumed to match across differentPG servers; those assigned during genbki.pl or during initdb are likelyto change due to addition or removal of unrelated objects.This means that the cutoff should be FirstGenbkiObjectId (in HEAD)or FirstBootstrapObjectId (before that), not FirstNormalObjectId.Compare postgres_fdw's is_builtin() test.It's likely that this error has no observable consequence in anormally-functioning system, since ATM the only affected type OIDs aresystem catalog rowtypes and information_schema types, which would nottypically be interesting for logical replication. But you couldprobably break it if you tried hard, so back-patch.Discussion:https://postgr.es/m/15150.1557257111@sss.pgh.pa.us1 parente3bf3c0 commit3b50503
2 files changed
+8
-4
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
424 | 424 |
| |
425 | 425 |
| |
426 | 426 |
| |
427 |
| - | |
| 427 | + | |
428 | 428 |
| |
429 | 429 |
| |
430 | 430 |
| |
|
Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
302 | 302 |
| |
303 | 303 |
| |
304 | 304 |
| |
305 |
| - | |
306 |
| - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
307 | 311 |
| |
308 | 312 |
| |
309 | 313 |
| |
| |||
312 | 316 |
| |
313 | 317 |
| |
314 | 318 |
| |
315 |
| - | |
| 319 | + | |
316 | 320 |
| |
317 | 321 |
| |
318 | 322 |
| |
|
0 commit comments
Comments
(0)