pgsql: In initdb's post-bootstrap phase, drop temp tables explicitly. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: In initdb's post-bootstrap phase, drop temp tables explicitly.
Date
Msg-id E1aGrq6-0007Vd-R6@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
In initdb's post-bootstrap phase, drop temp tables explicitly.

Although these temp tables will get removed from template1 at the end of
the standalone-backend run, that's too late to keep them from getting
copied into the template0 and postgres databases, now that we use only a
single backend run for the whole sequence.  While no real harm is done
by the extra copies (since they'd be deleted on first use of the temp
schema), it's still unsightly, and it would mean some wasted cycles for
every database creation for the life of the installation.

Oversight in commit c4a8812cf64b1426.  Noticed by Amit Langote.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dad08994b25b8cd2caa83b2e856fcc940d5e515c

Modified Files
--------------
src/bin/initdb/initdb.c |   13 +++++++++++++
1 file changed, 13 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Comment typo fix.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Windows: Make pg_ctl reliably detect service status