From: Schneider (AWS), Jeremy <schnjere@amazon.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: relation OID in ReorderBufferToastReplace error message
Date: Fri, 2 Jul 2021 02:12:01 +0000
Message-ID: <48B6BE63-FE39-45B8-9AD8-819DAAC5877F@amazon.com> (raw)
In-Reply-To: <772142.1625191000@sss.pgh.pa.us>
References: <808ed65b-994c-915a-361c-577f088b837f@amazon.com>
<772142.1625191000@sss.pgh.pa.us>
> On Jul 1, 2021, at 18:57, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> But I wonder why
> print the parent's OID, when we have access to its name.
Seems like a few people do schema-based multi-tenancy with similarly named relations in different namespaces, so I’d have a preference for OID over an unqualified relation name. Also the error message shows the OID for the toast relation so this is consistent.
Relation name could work too though, especially if the schema was included
-Jeremy
Sent from my TI-83
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: schnjere@amazon.com, tgl@sss.pgh.pa.us
Subject: Re: relation OID in ReorderBufferToastReplace error message
In-Reply-To: <48B6BE63-FE39-45B8-9AD8-819DAAC5877F@amazon.com>
References: <808ed65b-994c-915a-361c-577f088b837f@amazon.com> <772142.1625191000@sss.pgh.pa.us> <48B6BE63-FE39-45B8-9AD8-819DAAC5877F@amazon.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox