Re: fix schema ownership for database owner on first connection - Mailing list pgsql-patches

From Tom Lane
Subject Re: fix schema ownership for database owner on first connection
Date
Msg-id 1515.1086706223@sss.pgh.pa.us
Whole thread Raw
In response to fix schema ownership for database owner on first connection  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: fix schema ownership for database owner on first  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-patches
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> (2) This boolean is tested in postinit.c:ReverifyMyDatabase,
>      and InitializeDatabase is called if necessary.

And what happens if multiple backends try to connect at the same time?

> (4) Some validation is added. This part validates for me
>      (although rules and errors regression tests are broken in current
>       cvs head, independtly of this patch).

I do not think it's a good idea for the regression tests to do anything
to any databases other than regression.  Especially not databases with
names that might match people's real databases.

            regards, tom lane

pgsql-patches by date:

Previous
From: Fabien COELHO
Date:
Subject: fix schema ownership for database owner on first connection
Next
From: Tom Lane
Date:
Subject: Re: cost_nonsequential_access()