template1, createdb, schemas, and owners

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: template1, createdb, schemas, and owners
Date: 2004-05-11 20:44:59
Message-ID: 20040511204459.26236.qmail@web40611.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have two machines between which I exchange dumps a
lot. On the first (Windows/cygwin), pgsql was set up
with "Administrator" as the main superuser - who owns
all schemas in template0 and template1. On the second
machine (Linux), "postgres" is pgsql's main superuser.
On whatever machines I do "createdb", the owner of the
schemas in template0/1 is copied over to the schemas
in the new database, even when specifying the owner
parameter (shouldn't the owner of the database own all
schemas in it?). This creates problems when dumping
and importing between the machines. The "SET SESSION
AUTHORIZATION 'Administrator';" causes errors when
trying to import on the machine without user
"Administrator".

What's the best way to remedy the problems caused by
the two different superusers? I've thought about
trying to change all instances of "Administrator" to
"postgres" on the first machine, but don't know how to
go about it.

TIA,
CSN



__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-05-11 20:49:12 Re: bytea
Previous Message Bruce Momjian 2004-05-11 20:23:18 Re: Adding MERGE to the TODO list (resend with subject)