Re: [EXTERNAL] Re: Asking for OK for a nasty trick to resolve PG CVE-2025-1094 i

2025-03-08 Thread Ron Johnson
Since it's a 24x7 app, you have database replication, virtual IPs and a fail-over manager in case a server crashes? Anyway, read through the PG 15 release notes. If none really affect you, then stay on 15.3. You're certain to miss *something*, though, or not understand the ramifications. And be

exclusion constraint question

2025-03-08 Thread Rhys A.D. Stewart
Greetings All, I have the following table: CREATE TABLE shelves( shelf_id bigint PRIMARY KEY, l_mug_id bigint UNIQUE, c_mug_id bigint UNIQUE, r_mug_id bigint UNIQUE, CHECK (l_mug_id <> c_mug_id AND l_mug_id <> r_mug_id AND c_mug_id <> r_mug_id), EXCLUDE USING gist (l_mug_i

Re: exclusion constraint question

2025-03-08 Thread Laurenz Albe
On Sat, 2025-03-08 at 14:01 -0500, Rhys A.D. Stewart wrote: > I have the following table: > > CREATE TABLE shelves( >     shelf_id bigint PRIMARY KEY, >     l_mug_id bigint UNIQUE, >     c_mug_id bigint UNIQUE, >     r_mug_id bigint UNIQUE, >     CHECK (l_mug_id <> c_mug_id AND l_mug_id <> r_mug_i

Re: exclusion constraint question

2025-03-08 Thread David G. Johnston
On Sat, Mar 8, 2025 at 12:01 PM Rhys A.D. Stewart wrote: > > CHECK (l_mug_id <> c_mug_id AND l_mug_id <> r_mug_id AND c_mug_id > <> r_mug_id), > EXCLUDE USING gist (l_mug_id WITH <>, c_mug_id WITH <>, r_mug_id > WITH <>) -- Not working as expected (or my expectations are wrong). > ); > >

Re: Asking for OK for a nasty trick to resolve PG CVE-2025-1094 i

2025-03-08 Thread Ron Johnson
On Thu, Mar 6, 2025 at 3:12 AM Laurenz Albe wrote: > [redirecting to pgsql-general] > > On Thu, 2025-03-06 at 07:39 +, Abraham, Danny wrote: > > I have many customers using PG 15.3 happily, and I cannot just snap > upgrade them all to 15.12. > > Why do you think you cannot do that? > In the l