Re: Partition Check not updated when insert into a partition
Alvaro Herrera <alvherre@alvh.no-ip.org>
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Pavel Borisov <pashkin.elfe@gmail.com>
Cc: Amit Langote <amitlangote09@gmail.com>, Nitin Jadhav <nitinjadhavpostgres@gmail.com>, "houzj.fnst@fujitsu.com" <houzj.fnst@fujitsu.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-10-18T17:40:31Z
Lists: pgsql-hackers
On 2021-Oct-18, Alvaro Herrera wrote: > Thanks. I'm looking at it now. I notice that if I take out the code > fix and keep the tests, I only see the ATTACH side of the problem have a > failure; I expected to see a failure for DETACH too. Ah, no, the test covers both cases; it's just that if it fails the first time, it'll fail to fail the second time. But if I run it separately, and make it succeed the first time, then the second one will fail as expected. This becomes better visible by adding \c in a few places, but I don't think it's necessary to add it to the committed test -- I'm taking the code as Amit submitted. -- Álvaro Herrera 39°49'30"S 73°17'W — https://www.EnterpriseDB.com/ Maybe there's lots of data loss but the records of data loss are also lost. (Lincoln Yeoh)
Commits
-
Invalidate partitions of table being attached/detached
- fe35528a5ed6 13.5 landed
- d6f1e16c8fe2 15.0 landed
- d36bdc4e9d3e 10.19 landed
- b703b7d312a7 11.14 landed
- 8b26be8a32c3 12.9 landed
- 72d064217257 14.1 landed