pgsql: Move a couple of initdb's subroutines into src/port/.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Move a couple of initdb's subroutines into src/port/.
Date: 2010-12-11 00:43:17
Message-ID: E1PRDYT-0003wK-1f@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Move a couple of initdb's subroutines into src/port/.

mkdir_p and check_data_dir will be useful in CREATE TABLESPACE, since we
have agreed that that command should handle subdirectory creation just like
initdb creates the PGDATA directory. Push them into src/port/ so that they
are available to both initdb and the backend. Rename to pg_mkdir_p and
pg_check_dir, just to be on the safe side. Add FreeBSD's copyright notice
to pgmkdirp.c, since that's where the code came from originally (this
really should have been in initdb.c). Very marginal code/comment cleanup.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=671199929d09397e0a60e269aec28846669216db

Modified Files
--------------
src/bin/initdb/initdb.c | 172 ++---------------------------------------------
src/include/port.h | 6 ++
src/port/Makefile | 10 ++-
src/port/pgcheckdir.c | 73 ++++++++++++++++++++
src/port/pgmkdirp.c | 148 ++++++++++++++++++++++++++++++++++++++++
5 files changed, 240 insertions(+), 169 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2010-12-11 04:25:07 pgsql: Minor documentation cleanup.
Previous Message Tom Lane 2010-12-10 22:35:50 pgsql: Use symbolic names not octal constants for file permission flags