Re: Bogus tags for comments, ACLs, and security labels in pg_dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Bogus tags for comments, ACLs, and security labels in pg_dump
Date: 2018-01-21 23:31:21
Message-ID: 25578.1516577481@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> What I think we should do is fix pg_dump so that these classes of
> TOC entries do indeed have tags that meet the expectation held by
> _tocEntryRequired, as per the first attached patch.

Some further poking around identified another place that was taking
dubious shortcuts to identify large-object TOC entries, further down
in _tocEntryRequired. Since that code is executed only during
binary upgrade, which will be working from a schema-only dump anyway,
it *might* be harmless. But I'm not sure, and it's certainly far from
future-proof. I also noted a copy-and-pasteo in dumpSecLabel.

Hence, I intend to add the attached to the back-patched fix proposed
previously.

regards, tom lane

Attachment Content-Type Size
more-large-object-fixes.patch text/x-diff 2.3 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2018-01-22 01:46:37 Re: [HACKERS] Support for Secure Transport SSL library on macOS as OpenSSL alternative
Previous Message Daniel Gustafsson 2018-01-21 23:08:03 Re: [HACKERS] Support for Secure Transport SSL library on macOS as OpenSSL alternative