pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Scot Kreienkamp <Scot.Kreienkamp@la-z-boy.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: PG9.1 migration to PG9.6, dump/restore issues
Date: Wed, 12 Sep 2018 16:53:01 -0700
Message-ID: <c32ed06e-15e6-c99d-8be4-bee9c80526ca@aklaver.com> (raw)
In-Reply-To: <17082AAFC33A934082836458CB53494374C9A5B9@MONDB03.na.lzb.hq>
References: <17082AAFC33A934082836458CB53494374C993BD@MONDB03.na.lzb.hq>
	<88e20905-8400-1781-9d11-0efe6f60dfef@aklaver.com>
	<17082AAFC33A934082836458CB53494374C9A5B9@MONDB03.na.lzb.hq>

On 9/12/18 11:30 AM, Scot Kreienkamp wrote:
>> Did you see errors in the restore?
>>
>> In particular about not finding roles(users) for the permissions?
>>
>> I ask because I do not see in the above anything about dumping objects
>> global to the cluster. That would include roles. I use:
>>
>> pg_dumpall -g -f globals.sql
>>
>> See:
>>
>> https://www.postgresql.org/docs/10/static/app-pg-dumpall.html
>>
> 
> Nope, no errors in the restore that I could see.  As I as discussing with Tom Lane, the -g switch doesn't bring over schema permissions either.  I could use the -s switch and 

Using pg_dumpall -g is not about permissions it is about transferring 
the roles that the permissions depend on. To put it another way roles 
are global to a cluster and permissions are tied to objects in a database.

just re-create the databases as empty again after that's applied.  That 
brings over everything except data.
> 
> 
> Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate
> One La-Z-Boy Drive| Monroe, Michigan 48162 |  Office: 734-384-6403 |  |  Mobile: 7349151444 | Email: Scot.Kreienkamp@la-z-boy.com
> 
> This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (9+ messages)

Message-ID: <c32ed06e-15e6-c99d-8be4-bee9c80526ca@aklaver.com>
Permalink:  ../c32ed06e-15e6-c99d-8be4-bee9c80526ca@aklaver.com/
Also on:    postgresql.org/message-id/c32ed06e-15e6-c99d-8be4-bee9c80526ca@aklaver.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: adrian.klaver@aklaver.com, Scot.Kreienkamp@la-z-boy.com
  Subject: Re: PG9.1 migration to PG9.6, dump/restore issues
  In-Reply-To: <c32ed06e-15e6-c99d-8be4-bee9c80526ca@aklaver.com>
  References: <17082AAFC33A934082836458CB53494374C993BD@MONDB03.na.lzb.hq> <88e20905-8400-1781-9d11-0efe6f60dfef@aklaver.com> <17082AAFC33A934082836458CB53494374C9A5B9@MONDB03.na.lzb.hq> <c32ed06e-15e6-c99d-8be4-bee9c80526ca@aklaver.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