From: Wolfgang Rißler <wolfgang.rissler@freenet.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Differences in Escaped bytea's when creating a plain pg_dump
Date: Mon, 27 Jun 2022 11:31:54 +0200
Message-ID: <221dcd52-53f1-1cd3-3354-39d857b261a3@freenet.de> (raw)
In-Reply-To: <CAKFQuwa4VnmmwagxOGx-fAF+L94wxxfBS9Gjyw-TzSyRBbmdBw@mail.gmail.com>
References: <28b43f01-6fa0-e424-73e7-c6ba8435dd31@freenet.de>
<CAKFQuwa4VnmmwagxOGx-fAF+L94wxxfBS9Gjyw-TzSyRBbmdBw@mail.gmail.com>
Am 27.06.2022 um 09:32 schrieb David G. Johnston:
[snip]
> I suggest doing self-contained examples that demonstrate the documented
> behavior not working as documented (or not being functional even if
> intended) to pinpoint any bug that might be lurking here. With only
> fragments and statements that seem impossible we are left to assume
> operator error. pg_dump is completely correct in what it is producing
> (non-escape literal \000).
>
> I also suggest using psql and pg_dump directly, and not pgAdmin, to
> demonstrate a core PostgreSQL bug.
>
> David J.
>
Thank you David,
I followed you advice, using pg_dump and psql directly. And the in in
contrast to pgAdmin psql works like expected and reproducable again and
again.
With
SET standard_conforming_strings = on;
an INSERT without E and double backslash works.
SET standard_conforming_strings = off;
I get the warning and the error. So there is no core PostgreSQL bug, I
think.
PgAdmin has different result, when running the same sql commands
repeatedly. Before filing a bug there, I should update to the actual
release.
Now I will test our c++ code and will hopefully find out, why I can't
run the dump from a sql-file (where is SET standard_conforming_strings =
on;) as a pqxx-transaction...
--
Wolfgang Rißler
mailto: wolfgang.rissler@freenet.de
mobil: +49 1520 9191759
- may the source be with you -
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-general@postgresql.org
Cc: wolfgang.rissler@freenet.de
Subject: Re: Differences in Escaped bytea's when creating a plain pg_dump
In-Reply-To: <221dcd52-53f1-1cd3-3354-39d857b261a3@freenet.de>
References: <28b43f01-6fa0-e424-73e7-c6ba8435dd31@freenet.de> <CAKFQuwa4VnmmwagxOGx-fAF+L94wxxfBS9Gjyw-TzSyRBbmdBw@mail.gmail.com> <221dcd52-53f1-1cd3-3354-39d857b261a3@freenet.de>
* 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