pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Pettus <xof@thebuild.com>
To: Thorsten Schöning <tschoening@am-soft.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: How to restore a dump containing CASTs into a database with a new user?
Date: Mon, 20 Jul 2020 07:34:57 -0700
Message-ID: <FD2BE542-D6BD-49A2-B5B0-F6DCDB5CB960@thebuild.com> (raw)
In-Reply-To: <315697639.20200720112813@am-soft.de>
References: <1566481610.20200719202547@am-soft.de>
	<206414.1595183867@sss.pgh.pa.us>
	<1834098334.20200719215112@am-soft.de>
	<229216.1595191074@sss.pgh.pa.us>
	<929298897.20200719232557@am-soft.de>
	<B84FCC25-E4EE-4441-9788-9324FD9E0D2B@thebuild.com>
	<1097194106.20200720071316@am-soft.de>
	<D9A7BBE5-3AE4-4AE6-A267-853704EF84E9@thebuild.com>
	<315697639.20200720112813@am-soft.de>



> On Jul 20, 2020, at 02:28, Thorsten Schöning <tschoening@am-soft.de> wrote:
> 
> Would be far easier if Postgres would do that automatically like it
> seems to do for most other objects. The important point is that owning
> those types seems to be per database, so things should be safe to do
> automatically.

I'm not sure I understand exactly how this "feature" would work.  It seems to be "in the case that I am using CASTs that include internal types and restoring to a different, non-superuser user than the original one in the database that was dumped from, change the owner of internal types to make sure that my CAST restores work."  That strikes me as a *very* ad hoc feature indeed.

--
-- Christophe Pettus
   xof@thebuild.com






view thread (14+ messages)  latest in thread

Message-ID: <FD2BE542-D6BD-49A2-B5B0-F6DCDB5CB960@thebuild.com>
Permalink:  ../FD2BE542-D6BD-49A2-B5B0-F6DCDB5CB960@thebuild.com/
Also on:    postgresql.org/message-id/FD2BE542-D6BD-49A2-B5B0-F6DCDB5CB960@thebuild.com

 · 

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-general@postgresql.org
  Cc: xof@thebuild.com, tschoening@am-soft.de
  Subject: Re: How to restore a dump containing CASTs into a database with a new user?
  In-Reply-To: <FD2BE542-D6BD-49A2-B5B0-F6DCDB5CB960@thebuild.com>
  References: <1566481610.20200719202547@am-soft.de> <206414.1595183867@sss.pgh.pa.us> <1834098334.20200719215112@am-soft.de> <229216.1595191074@sss.pgh.pa.us> <929298897.20200719232557@am-soft.de> <B84FCC25-E4EE-4441-9788-9324FD9E0D2B@thebuild.com> <1097194106.20200720071316@am-soft.de> <D9A7BBE5-3AE4-4AE6-A267-853704EF84E9@thebuild.com> <315697639.20200720112813@am-soft.de> <FD2BE542-D6BD-49A2-B5B0-F6DCDB5CB960@thebuild.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