pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Sam Darwin <samuel.d.darwin@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18383: creation of public schema is not consistent
Date: Fri, 08 Mar 2024 08:31:44 +0100
Message-ID: <d7c13f4f77baeab19056c04ed6a45adcfe18585b.camel@cybertec.at> (raw)
In-Reply-To: <CANEqPjG2xbmhiWMJ_LHYjtVO0Y=EdxGfPyN0nXkW4PE1L=6vHQ@mail.gmail.com>
References: <18383-d93f1e992237a8fd@postgresql.org>
	<569772.1709842301@sss.pgh.pa.us>
	<CANEqPjG2xbmhiWMJ_LHYjtVO0Y=EdxGfPyN0nXkW4PE1L=6vHQ@mail.gmail.com>

On Thu, 2024-03-07 at 18:48 -0700, Sam Darwin wrote:
> pg_restore: error: could not execute query: ERROR:  must be owner of schema public
> Command was: COMMENT ON SCHEMA public IS '';
> 
> Well, maybe, consider if terse error messages could be more verbose.

As long as you know that restoring a dump executes SQL statements, what
is missing?  You get the statement that was executed and the error
message.  Right, you have to know what the owner of an object is, but
you cannot expect the error message to discourse on that.

Restoring a dump when you are not a superuser is always difficult.

Yours,
Laurenz Albe





view thread (5+ messages)

Message-ID: <d7c13f4f77baeab19056c04ed6a45adcfe18585b.camel@cybertec.at>
Permalink:  ../d7c13f4f77baeab19056c04ed6a45adcfe18585b.camel@cybertec.at/
Also on:    postgresql.org/message-id/d7c13f4f77baeab19056c04ed6a45adcfe18585b.camel@cybertec.at

 · 

reply

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-bugs@postgresql.org
  Cc: laurenz.albe@cybertec.at, samuel.d.darwin@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #18383: creation of public schema is not consistent
  In-Reply-To: <d7c13f4f77baeab19056c04ed6a45adcfe18585b.camel@cybertec.at>
  References: <18383-d93f1e992237a8fd@postgresql.org> <569772.1709842301@sss.pgh.pa.us> <CANEqPjG2xbmhiWMJ_LHYjtVO0Y=EdxGfPyN0nXkW4PE1L=6vHQ@mail.gmail.com> <d7c13f4f77baeab19056c04ed6a45adcfe18585b.camel@cybertec.at>

* 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