Re: Bootstrap DATA is a pita - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bootstrap DATA is a pita
Date
Msg-id 3409.1425481149@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bootstrap DATA is a pita  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Mar 4, 2015 at 9:06 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
>> Could you give an example of the sort of thing you wish to do?

> e.g. grep for a function name and check that all the matches have the
> same volatility.

Well, grep is not going to work too well anymore, but extracting a
specific field from an entry is going to be beyond the competence of
simple grep/sed tools anyway if we allow column default substitutions.

I think a fairer question is "can you do that in a one-liner Perl script",
which seems like it might be achievable given an appropriate choice of
data markup language.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: improve pgbench syntax error messages
Next
From: Andrew Dunstan
Date:
Subject: Re: Bootstrap DATA is a pita