pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: greg.rychlewski@gmail.com
Subject: BUG #17379: Cannot issue multi-command statements using a replication connection
Date: Mon, 24 Jan 2022 01:10:49 +0000
Message-ID: <17379-6a5c6cfb3f1f5e77@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17379
Logged by:          Greg Rychlewski
Email address:      greg.rychlewski@gmail.com
PostgreSQL version: 13.5
Operating system:   Mac OS
Description:        

When I issue the following multi-command query on a replication connection I
receive a syntax error:

$psql "dbname=postgres replication=database" -c "select 1;select 2;" 
ERROR:  syntax error

I was curious why this happens, given the documentation at [1] states "In
either physical replication or logical replication walsender mode, only the
simple query protocol can be used." 

For comparison, the following query returns the expected result:

$psql "dbname=postgres replication=database" -c "select 1;" 
 ?column? 
----------
        1

[1] https://www.postgresql.org/docs/current/protocol-replication.html



view thread (3+ messages)  latest in thread

Message-ID: <17379-6a5c6cfb3f1f5e77@postgresql.org>
Permalink:  ../17379-6a5c6cfb3f1f5e77@postgresql.org/
Also on:    postgresql.org/message-id/17379-6a5c6cfb3f1f5e77@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-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, greg.rychlewski@gmail.com
  Subject: Re: BUG #17379: Cannot issue multi-command statements using a replication connection
  In-Reply-To: <17379-6a5c6cfb3f1f5e77@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