Re: missing toast table for pg_policy - Mailing list pgsql-hackers

From Joe Conway
Subject Re: missing toast table for pg_policy
Date
Msg-id bb8b90b3-af44-3520-49cf-214a5930695c@joeconway.com
Whole thread Raw
In response to Re: missing toast table for pg_policy  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: missing toast table for pg_policy
List pgsql-hackers
On 02/16/2018 05:24 PM, Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>> On 02/16/2018 05:07 PM, Andres Freund wrote:
>>> If problematic for < master users I think you'll have to restart cluster
>>> with allow_system_table_mods, manually create/drop toasted column. IIRC
>>> that should add a toast table even after dropping.
>
>> I wasn't sure if we would want to backpatch and put the manual procedure
>> steps into the release notes.
>
> The example you give seems like pretty bad practice to me.  I don't think
> we should back-patch unless it's possible to trigger the problem with a
> more realistic policy expression.

Fair enough, but the origin of this was a real life-based complaint.

> (Also, one can always work around it by putting the complicated condition
> into a function, which would likely be a better idea anyway from a
> maintenance standpoint.)

Yes, exactly. I'm fine with not backpatching, just wanted to raise the
possibility. I will push later today to HEAD (with a catalog version bump).

Joe

--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development


Attachment

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: pgbench - allow to specify scale as a size
Next
From: Tom Lane
Date:
Subject: Re: pgbench - allow to specify scale as a size