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: (view raw, whole thread or download thread mbox)
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.



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-2018 The PostgreSQL Global Development Group