From: | Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in> |
---|---|
To: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Postgresql.conf, initdb patch |
Date: | 2003-07-01 09:33:28 |
Message-ID: | 200307011503.28489.shridhar_daithankar@nospam.persistent.co.in |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
On Tuesday 01 July 2003 05:39, Peter Eisentraut wrote:
> Josh Berkus writes:
> > initdb.patch, written by Shridhar, patches initdb so that the LC_*
> > localization variables are inserted into postgresql.conf at the point
> > commented "#LC VARS GO HERE!"
>
> It's pretty pointless to use
>
> cat $file | sed 's/.../'
>
> because sed can open files perfectly well:
>
> sed 's/.../' $file
>
> You should clean up the temp files in exit_nicely(), because if someone or
> something aborts initdb in the middle, then the trap will at least have a
> better chance to remove the files.
Argh. That was me who did that patch and it was not good.
Anyway attached is the patch
* Which uses sed correctly
* and get rid of temp files at all.
Hopefully this will be good enough.
Shridhar
Attachment | Content-Type | Size |
---|---|---|
initdb.patch | text/x-diff | 1.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | greg | 2003-07-01 13:21:58 | Re: Datetime patch |
Previous Message | Michael Glaesemann | 2003-07-01 07:38:04 | Hierarchical Re: connectby_reverselookup() |