aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2019-04-25 10:50:14 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2019-04-25 11:22:29 -0400
commit05b38c7e63d1c8bca8c07ab4c8b194eed3c50ec7 (patch)
tree15585d6519b3d578782a704ed096acd5960c9237 /contrib/postgres_fdw/sql/postgres_fdw.sql
parentc247ae09226eeb1c3a77bb54a0736ed7da5622b5 (diff)
downloadpostgresql-05b38c7e63d1c8bca8c07ab4c8b194eed3c50ec7.tar.gz
postgresql-05b38c7e63d1c8bca8c07ab4c8b194eed3c50ec7.zip
Fix partitioned index attachment
When an existing index in a partition is attached to a new index on its parent, we forgot to set the "relispartition" flag correctly, which meant that it was not possible to find the index in various operations, such as adding a foreign key constraint that references that partitioned table. One of four places that was assigning the parent index was forgetting to do that, so fix by shifting responsibility of updating the flag to the routine that changes the parent. Author: Amit Langote, Álvaro Herrera Reported-by: Hubert "depesz" Lubaczewski Discussion: https://postgr.es/m/CA+HiwqHMsRtRYRWYTWavKJ8x14AFsv7bmAV46mYwnfD3vy8goQ@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
0 files changed, 0 insertions, 0 deletions