Re: Moved simple_prompt()/sprompt.c - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Moved simple_prompt()/sprompt.c
Date
Msg-id 200308081428.h78ESW409098@candle.pha.pa.us
Whole thread Raw
In response to Re: Moved simple_prompt()/sprompt.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Moved simple_prompt()/sprompt.c
List pgsql-hackers
Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > Bruce Momjian writes:
> >> If a file is needed by three non-backend directories, /port seems to be
> >> the proper place for it.
> 
> > src/port is intended for replacement implementations of standard library
> > functions.
> 
> I concur, src/port is *not* the right place.  src/port is for stuff that
> is platform-dependent.

Yes, thread.c, path.c, and sprompt.c should be in utils, but how do I do
that?  Utils seems to be a place things are pulled from, rather than a
library that goes with every link.

Is it worth creating another library that acts just like /port but is
called utils, or should we just rename the directory to portutils?

I am looking to move fmtId() over to port too so psql can use it.  It is
already used by pg_dump, and /scripts.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: poorly written builtin functions
Next
From: Tom Lane
Date:
Subject: Re: 7.4beta compile warning