createdb feature request - Mailing list pgsql-general

From Mark Harrison
Subject createdb feature request
Date
Msg-id 402A8762.10008@pixar.com
Whole thread Raw
Responses Re: createdb feature request
Re: createdb feature request
List pgsql-general
Apache has a nice feature: it creates copies of all the default
configuration files, so that it's easy to diff and see what has
been modified in the config files.

Can this be included in createdb as well?

Thanks,
Mark

Here's a patch:


*** initdb.sh-orig    2004-02-11 11:25:49.000000000 -0800
--- initdb.sh    2004-02-11 11:28:35.000000000 -0800
***************
*** 608,615 ****
--- 608,620 ----
   fi
   cp "$PG_IDENT_SAMPLE" "$PGDATA"/pg_ident.conf          || exit_nicely

+ cp "$PGDATA"/pg_ident.conf "$PGDATA"/pg_ident.conf.default     || exit_nicely
+ cp "$PGDATA"/pg_hba.conf "$PGDATA"/pg_hba.conf.default         || exit_nicely
+ cp "$PGDATA"/postgresql.conf "$PGDATA"/postgresql.conf.default || exit_nicely
   chmod 0600 "$PGDATA"/pg_hba.conf "$PGDATA"/pg_ident.conf \
       "$PGDATA"/postgresql.conf
+ chmod 0600 "$PGDATA"/pg_hba.conf.default "$PGDATA"/pg_ident.conf.default \
+     "$PGDATA"/postgresql.conf.default

   echo "ok"


pgsql-general by date:

Previous
From: Barbara Lindsey
Date:
Subject: Re: pl/pythonu
Next
From: Martijn van Oosterhout
Date:
Subject: Re: DB cache size strategies