Re: pgsql: Detach constraints when partitions are detached

2019-01-24 Thread Alvaro Herrera
CC'ing -hackers. On 2019-Jan-24, Amit Langote wrote: > On 2019/01/24 13:58, Tom Lane wrote: > > Alvaro Herrera writes: > >> Detach constraints when partitions are detached > > > > Hm ... it looks like this fails under -DRELCACHE_FORCE_RELEASE: > > Oops, sorry. This is why: > > index

Re: pgsql: Detach constraints when partitions are detached

2019-01-23 Thread Amit Langote
On 2019/01/24 13:58, Tom Lane wrote: > Alvaro Herrera writes: >> Detach constraints when partitions are detached > > Hm ... it looks like this fails under -DRELCACHE_FORCE_RELEASE: Oops, sorry. This is why: index_close(idx, NoLock); ... +if (!idx->rd_index->indisprimary && !id

Re: pgsql: Detach constraints when partitions are detached

2019-01-23 Thread Tom Lane
Alvaro Herrera writes: > Detach constraints when partitions are detached Hm ... it looks like this fails under -DRELCACHE_FORCE_RELEASE: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prion&dt=2019-01-24%2003%3A58%3A02 Core was generated by `postgres: ec2-user regression [local] ALTER