Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5lF7-0007TI-Ol for pgsql-general@arkaria.postgresql.org; Mon, 27 Jun 2022 09:41:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o5lF6-0007GJ-I0 for pgsql-general@arkaria.postgresql.org; Mon, 27 Jun 2022 09:41:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5l6F-00064s-SL for pgsql-general@lists.postgresql.org; Mon, 27 Jun 2022 09:32:07 +0000 Received: from mout3.freenet.de ([2001:748:100:40::2:5]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5l68-0002pD-Vk for pgsql-general@lists.postgresql.org; Mon, 27 Jun 2022 09:32:06 +0000 Received: from [195.4.92.127] (helo=sub8.freenet.de) by mout3.freenet.de with esmtpa (ID rissler.wolfgang@freenet.de) (port 25) (Exim 4.94.2 #2) id 1o5l63-004UgT-PQ for pgsql-general@lists.postgresql.org; Mon, 27 Jun 2022 11:31:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freenet.de; s=mjaymdexmjqk; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6C+hkVMJu1pXDlHF5KfRlG3KNoGZ1bXIoFQWpTkJhQI=; b=ZFMoZZZcqXbtThuammM6AyU1XK coEwqlJuOvY76ha5MuFR18+LBERFoeXJiynv6w5qD/sk3tTQpqUGvCbQb7uJDNA/Gj5k3FnylcnRz RawN8RZTYN3+4As2VMJ2SYQqtJSVII7XtMq9PFP4Gt3ram3f7SGjawEe7XXP8JxCArVRZNxw8zfJj P8YR0A4sg4bXDR59FEPqRgk/JX7+EohZn2oDvCzKmqxc1X0pq9beEu/U/pueyebGEK8lZtIddgly3 MRC9XuN7BzO4Fadr4NP5fkHjbeHSzwR3+aqTuP3qn9LkKN5tsqwIGz0qDiOo6UhHNyDXKrtVnThG0 Au9b8pgw==; Received: from p200300fc1f0a8400f8379b3691e33d4b.dip0.t-ipconnect.de ([2003:fc:1f0a:8400:f837:9b36:91e3:3d4b]:53135) by sub8.freenet.de with esmtpsa (ID rissler.wolfgang@freenet.de) (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (port 465) (Exim 4.94.2 #2) id 1o5l63-00G8MQ-OU for pgsql-general@lists.postgresql.org; Mon, 27 Jun 2022 11:31:55 +0200 Message-ID: <221dcd52-53f1-1cd3-3354-39d857b261a3@freenet.de> Date: Mon, 27 Jun 2022 11:31:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Differences in Escaped bytea's when creating a plain pg_dump Content-Language: en-GB To: pgsql-general@lists.postgresql.org References: <28b43f01-6fa0-e424-73e7-c6ba8435dd31@freenet.de> From: =?UTF-8?Q?Wolfgang_Ri=c3=9fler?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-FN-MUUID: 1656322315B2A386E2AAA7O X-Originated-At: 2003:fc:1f0a:8400:f837:9b36:91e3:3d4b!53135 X-Scan-TS: Mon, 27 Jun 2022 11:31:55 +0200 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 -