pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gerdan Santos <gerdan@gmail.com>
To: pgsql-hackers@postgresql.org
Cc: Fabien Coelho <postgresql.org@coelho.net>
Subject: Re: Variable substitution in psql backtick expansion
Date: Sat, 16 Sep 2017 14:23:10 +0000
Message-ID: <20170916142310.1354.94477.pgcf@coridan.postgresql.org> (raw)
In-Reply-To: <alpine.DEB.2.20.1709061837520.17848@lancre>
References: <9561.1490895211@sss.pgh.pa.us>
	<alpine.DEB.2.20.1709061837520.17848@lancre>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

The following review has been posted through the commitfest application:
make installcheck-world:  not tested
Implements feature:       not tested
Spec compliant:           not tested
Documentation:            tested, passed

When i try apply this patch he failed with a following messenger:

File to patch: /src/postgresql/src/bin/psql/command.c
patching file /src/postgresql/src/bin/psql/command.c
Reversed (or previously applied) patch detected!  Assume -R? [n] y
Hunk #1 succeeded at 3209 (offset -128 lines).
Hunk #2 FAILED at 3348.
Hunk #3 succeeded at 3252 (offset -128 lines).
1 out of 3 hunks FAILED -- saving rejects to file /src/postgresql/src/bin/psql/command.c.rej
(Stripping trailing CRs from patch; use --binary to disable.)
can't find file to patch at input line 91
Perhaps you should have used the -p or --strip option?
The text leading up to this was:



postgres@pgdev:/src/postgresql/src/bin/psql$ cat /src/postgresql/src/bin/psql/command.c.rej
inline patch 1: command.c (+0/-14 lines) download inline-1.patch--- command.c +++ command.c @@ -3348,20 +3345,6 @@ SyncVariables(void) SetVariable(pset.vars, "PORT", PQport(pset.db)); SetVariable(pset.vars, "ENCODING", pg_encoding_to_char(pset.encoding)); - /* this bit should match connection_warnings(): */ - /* Try to get full text form of version, might include "devel" etc */ - server_version = PQparameterStatus(pset.db, "server_version"); - /* Otherwise fall back on pset.sversion for servers prior 7.4 */ - if (!server_version) - { - formatPGVersionNumber(pset.sversion, true, vbuf, sizeof(vbuf)); - server_version = vbuf; - } - SetVariable(pset.vars, "SERVER_VERSION_NAME", server_version); - - snprintf(vbuf, sizeof(vbuf), "%d", pset.sversion); - SetVariable(pset.vars, "SERVER_VERSION_NUM", vbuf); - /* send stuff to it, too */ PQsetErrorVerbosity(pset.db, pset.verbosity); PQsetErrorContextVisibility(pset.db, pset.show_context);
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

view thread (96+ messages)  latest in thread

Message-ID: <20170916142310.1354.94477.pgcf@coridan.postgresql.org>
Permalink:  ../20170916142310.1354.94477.pgcf@coridan.postgresql.org/
Also on:    postgresql.org/message-id/20170916142310.1354.94477.pgcf@coridan.postgresql.org

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: gerdan@gmail.com, postgresql.org@coelho.net
  Subject: Re: Variable substitution in psql backtick expansion
  In-Reply-To: <20170916142310.1354.94477.pgcf@coridan.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox