Re: [BUGS] BUG #7809: Running pg_dump on slave w/ streaming replication fails if there are unlogged tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Joe Van Dyk <joe(at)tanga(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: [BUGS] BUG #7809: Running pg_dump on slave w/ streaming replication fails if there are unlogged tables
Date: 2013-01-20 15:59:43
Message-ID: 21022.1358697583@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

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

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

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Magnus Hagander 2013-01-20 16:01:51 Re: BUG #7809: Running pg_dump on slave w/ streaming replication fails if there are unlogged tables
Previous Message emesika 2013-01-20 10:33:37 BUG #7817: psql does not relate to footer settings in extended mode

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2013-01-20 16:01:51 Re: BUG #7809: Running pg_dump on slave w/ streaming replication fails if there are unlogged tables
Previous Message Tom Lane 2013-01-20 15:53:18 Re: allowing privileges on untrusted languages