From: | Rob Storrs <rstorrs(at)speakeasy(dot)net> |
---|---|
To: | frank_lupo <frank_lupo(at)email(dot)it> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: drop user question |
Date: | 2003-11-11 00:45:10 |
Message-ID: | 3FB03116.8090708@speakeasy.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
According to my test (pg 7.2.4), the owner of the table will be null
after the user PIPPO is dropped.
test=# \dt aa
List of relations
Name | Type | Owner
------+-------+-------
aa | table | pippo
test=# drop user PIPPO;
DROP USER
test=# \dt aa
List of relations
Name | Type | Owner
------+-------+-------
aa | table |
Hope that helps.
~R
ps. I had to change the syntax of your alter table statement to "alter
table aa owner to pippo;" for it to work.
frank_lupo wrote:
> I have create user PIPPO:
> CREATE USER PIPPO;
>
> I have create a table:
>
> create table aa (id int4);
> Change owner of table to user PIPPO.
> alter table aa owner pippo;
>
> I drop user PIPPO. Who is the owner of the table?
>
> Thanks.
>
>
> Bye !!
> Frank Lupo (Wolf) !!
>
> /\_ _/\
> \ o o /
> --ooo-----ooo---
>
>
>
> --
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
> Sponsor:
> Usi ancora fax e carta? Allora sei preistorico! Oggi i fax li ricevi direttamente sul computer con il nuovo EmailFax IN
> Clicca e scopri i vantaggi
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1568&d=10-11
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2003-11-11 00:53:22 | Re: PL/Perl returning multiple rows |
Previous Message | Joe Conway | 2003-11-11 00:44:25 | Re: PL/Perl returning multiple rows |