Shell scripts (Re: [PATCHES] initdb new&improved) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Shell scripts (Re: [PATCHES] initdb new&improved)
Date
Msg-id Pine.LNX.4.21.9912171625500.1139-100000@localhost.localdomain
Whole thread Raw
List pgsql-hackers
On 1999-12-17, Karel Zak - Zakkr mentioned:

> Note: current postgresql "scripts-system" is small hell, in all scripts is

Hey, I just went through great lengths in writing those ... :)

> simular options..etc, all depend on psql and if psql is changed we must

Similar options was one of the points. Do you want different options in
each one? Also, since I just rewrote psql as well, the scripts and psql
are very well tuned, and I think no one plans on changing psql that much
in the next few months that the scripts would be broken.

> rewrite all scripts ...etc. (And shell is terrible tool.) What write _one_

But it's a portable tool.

> tool (in C) instead current scripts, which load SQL query from prepared

Then you must keep the files around, find them, big mess. (See initdb
change.) Also since they are shell scripts it is transparent to people
what's going on, and that was also the point, since some folks thought
they did some magic, but they really only execute SQL statements.

> files? If nobody work on this I can make it. 

I don't see the necessity. The scripts have worked for many people many
years.

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden




pgsql-hackers by date:

Previous
From: Karel Zak - Zakkr
Date:
Subject: bug in Debian's pgaccess package
Next
From: wieck@debis.com (Jan Wieck)
Date:
Subject: INITDB doesn't create views