Re: proposal: multiple psql option -c - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: multiple psql option -c
Date
Msg-id CAFj8pRA-wahoCmL0qFFT=jrUj9AhAuG8F8Lbvs-4oBwK=5goHw@mail.gmail.com
Whole thread Raw
In response to Re: proposal: multiple psql option -c  (Adam Brightwell <adam.brightwell@crunchydatasolutions.com>)
Responses Re: proposal: multiple psql option -c  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Hi

2015-09-21 16:46 GMT+02:00 Adam Brightwell <adam.brightwell@crunchydatasolutions.com>:
Pavel,

> with -1 option support

FWIW, I have tried to apply this patch against master (7f11724) and
there is a minor error, see below.

>From patch:

patching file src/bin/psql/settings.h
Hunk #2 FAILED at 135.
1 out of 2 hunks FAILED -- saving rejects to file src/bin/psql/settings.h.rej

>From settings.h.rej:

--- src/bin/psql/settings.h
+++ src/bin/psql/settings.h
@@ -135,6 +141,7 @@
        const char *prompt2;
        const char *prompt3;
        PGVerbosity verbosity;          /* current error verbosity level */
+       GroupCommand *group_commands;
 } PsqlSettings;

 extern PsqlSettings pset;

yes, it was broken by context visibility patch.

fixed patch attached

Regards

Pavel
 

-Adam

--
Adam Brightwell - adam.brightwell@crunchydatasolutions.com
Database Engineer - www.crunchydatasolutions.com

Attachment

pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: [BUGS] BUG #12989: pg_size_pretty with negative values
Next
From: Peter Geoghegan
Date:
Subject: Minor clarifying changes to abbreviated key abort code comments