pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Joe Van Dyk <joe@tanga.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: [BUGS] BUG #7809: Running pg_dump on slave w/ streaming replication fails if there are unlogged tables
Date: Sun, 20 Jan 2013 10:59:43 -0500
Message-ID: <21022.1358697583@sss.pgh.pa.us> (raw)
In-Reply-To: <CABUevEy4GOqWaJ0zQnFM68LHiS3NfcY3jESTpw8CL-ZwkYVqaQ@mail.gmail.com>
References: <E1TutDO-0001Hb-2v@wrigleys.postgresql.org>
	<CABUevEwgKT97BLYE_MoQCrHsxWU-uyJS8c8f1KVkDo2OxBO-eQ@mail.gmail.com>
	<CABUevEy4GOqWaJ0zQnFM68LHiS3NfcY3jESTpw8CL-ZwkYVqaQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Magnus Hagander <magnus@hagander.net> writes:
> +		PGresult *res = ExecuteSqlQueryForSingleRow(fout, "SELECT pg_is_in_recovery()");

That function call needs to be schema-qualified for security.

			regards, tom lane


-- 
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 (6+ messages)  latest in thread

Message-ID: <21022.1358697583@sss.pgh.pa.us>
Permalink:  ../21022.1358697583@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21022.1358697583@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, magnus@hagander.net, joe@tanga.com, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #7809: Running pg_dump on slave w/ streaming replication fails if there are unlogged tables
  In-Reply-To: <21022.1358697583@sss.pgh.pa.us>
  References: <E1TutDO-0001Hb-2v@wrigleys.postgresql.org> <CABUevEwgKT97BLYE_MoQCrHsxWU-uyJS8c8f1KVkDo2OxBO-eQ@mail.gmail.com> <CABUevEy4GOqWaJ0zQnFM68LHiS3NfcY3jESTpw8CL-ZwkYVqaQ@mail.gmail.com> <21022.1358697583@sss.pgh.pa.us>

* 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