Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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(-)

pgsql-committers by date

Next:From: Robert HaasDate: 2010-12-11 04:25:07
Subject: pgsql: Minor documentation cleanup.
Previous:From: Tom LaneDate: 2010-12-10 22:35:50
Subject: pgsql: Use symbolic names not octal constants for file permissionflags

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group