forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0803514
committed
Fix underqualified cast-target type names in pg_dump and psql queries.
Queries running with some non-pg_catalog schema frontmost in their searchpath need to be careful to schema-qualify type names that should be soughtin pg_catalog. Vitaly Burovoy reported an oversight of this sort inpg_dump's dumpSequence, and grepping detected another one in psql'sdescribeOneTableDetails, both introduced by sequence-related changes inv10. In pg_dump, we can fix things by removing the cast altogether, sinceit doesn't really matter what data types are reported for these queryresult columns. Likewise in psql, the query seemed to be working undulyhard to get a result that's guaranteed to be exactly 'bigint'.I also changed a couple of occurrences of "::char" similarly. These arenot bugs, since "char" is a typename keyword and not subject to search_pathrules, but it seems better to use uniform style.Vitaly Burovoy and Tom LaneDiscussion:https://postgr.es/m/CAKOSWN=ds66zLw2SqkLTM8wbXFgDbc_OdkmT3dJfPT2mE5kipA@mail.gmail.com1 parentee4673a commit0803514
2 files changed
+8
-5
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13160 | 13160 |
| |
13161 | 13161 |
| |
13162 | 13162 |
| |
13163 |
| - | |
| 13163 | + | |
13164 | 13164 |
| |
13165 | 13165 |
| |
13166 | 13166 |
| |
| |||
16549 | 16549 |
| |
16550 | 16550 |
| |
16551 | 16551 |
| |
| 16552 | + | |
| 16553 | + | |
| 16554 | + | |
16552 | 16555 |
| |
16553 | 16556 |
| |
16554 | 16557 |
| |
16555 | 16558 |
| |
16556 | 16559 |
| |
16557 | 16560 |
| |
16558 |
| - | |
| 16561 | + | |
16559 | 16562 |
| |
16560 | 16563 |
| |
16561 | 16564 |
| |
| |||
16566 | 16569 |
| |
16567 | 16570 |
| |
16568 | 16571 |
| |
16569 |
| - | |
| 16572 | + | |
16570 | 16573 |
| |
16571 | 16574 |
| |
16572 | 16575 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1596 | 1596 |
| |
1597 | 1597 |
| |
1598 | 1598 |
| |
1599 |
| - | |
| 1599 | + | |
1600 | 1600 |
| |
1601 | 1601 |
| |
1602 | 1602 |
| |
| |||
2489 | 2489 |
| |
2490 | 2490 |
| |
2491 | 2491 |
| |
2492 |
| - | |
| 2492 | + | |
2493 | 2493 |
| |
2494 | 2494 |
| |
2495 | 2495 |
| |
|
0 commit comments
Comments
(0)