Re: missing toast table for pg_policy

From: Joe Conway <mail(at)joeconway(dot)com>
To: John Naylor <jcnaylor(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: missing toast table for pg_policy
Date: 2018-06-15 19:15:22
Message-ID: 1d68c831-5463-b205-fae1-02000f206e84@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 06/15/2018 02:40 PM, John Naylor wrote:
> On 2/19/18, Joe Conway <mail(at)joeconway(dot)com> wrote:
>> The attached does exactly this. Gives all system tables toast tables
>> except pg_class, pg_attribute, and pg_index, and includes cat version
>> bump and regression test in misc_sanity.
>>
>> Any further discussion, comments, complaints?
>
> Hi Joe,
> There's been a little bit-rot with duplicate OIDs and the regression
> test. The first attached patch fixes that (applies on top of yours).

Not surprising -- thanks for the update.

> It occurred to be that we could go further and create most toast
> tables automatically by taking advantage of the fact that the toast
> creation function is a no-op if there are no varlena attributes. The
> second patch (applies on top of the first) demonstrates a setup where
> only shared and bootstrap catalogs need to have toast declarations
> specified manually with fixed OIDs. It's possible this way is more
> fragile, though.

Hmmm, I'll have a look.

Thanks!

Joe

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Gershuni 2018-06-15 19:30:30 Re: Spilling hashed SetOps and aggregates to disk
Previous Message Alvaro Herrera 2018-06-15 19:12:18 Re: pgsql: Store 2PC GID in commit/abort WAL recs for logical decoding