From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>, pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Problem when reloading data from older version |
Date: | 1999-06-08 06:01:48 |
Message-ID: | 199906080601.HAA18204@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
>Hmm. This seems wrong; if the function was created by the superuser
>then it should have proowner set to the superuser, and pg_dump looks
>like it does the right thing about reconnecting as the function owner
>(assuming you used -z, which is now default but wasn't in 6.4.2...).
Ah... looking back, I see that I did not use -z.
Using -z, it works OK.
>I wonder whether we need a notion of "effective" and "real" user ID,
>such as most Unix systems have. Then it'd be possible for the system
>to know "I may be creating objects on behalf of user X, but I really
>am the superuser" and apply protection checks appropriately. This'd
>be a much more elegant solution than \connect for pg_dump scripts,
>since the whole script would run in a single superuser session and just
>do a SET VARIABLE or something to indicate which user would be the owner
>of created objects.
I definitely agree with that. It's also needed in order to restrict
password manipulation of other users' passwords to the superuser alone.
--
Vote against SPAM: http://www.politik-digital.de/spam/
========================================
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"Fear not, for I am with thee; be not dismayed,
for I am thy God. I will strengthen thee and I will
help thee; yea, I will uphold thee with the right hand
of my righteousness." Isaiah 41:10
From | Date | Subject | |
---|---|---|---|
Next Message | ZEUGSWETTER Andreas IZ5 | 1999-06-08 07:18:33 | Re: [HACKERS] 6.6 items |
Previous Message | Kaare Rasmussen | 1999-06-08 04:30:50 | Re: [HACKERS] PostgreSQL History(Parody) |