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: pawel.jan.podgorski@gmail.com
Subject: BUG #17745: RETURNING after INSERT does not return the same structure of response
Date: Wed, 11 Jan 2023 11:22:39 +0000
Message-ID: <17745-f71067ba7f24e1cb@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17745
Logged by:          Paweł Podgórski
Email address:      pawel.jan.podgorski@gmail.com
PostgreSQL version: 14.5
Operating system:   Windows 11
Description:        

When I try to "INSERT INTO .... RETURNING (channel)" the output is:
   channel
--------------
 3o0mNjcS4CMr
(1 row)

But RETURNING multiple attributes produces another output: 
"INSERT INTO .... RETURNING ( channel ,  last_processing_timestamp, 
last_successful_processing_timestamp )"
                                     row
--------------------------------------------------------------------------------
 (3o0mNjcS4CMr,"2023-01-11 12:01:40.016988+01","2023-01-11
12:01:40.016988+01")
(1 row)

The output that is expected is similar to:
"INSERT INTO .... RETURNING channel ,  last_processing_timestamp, 
last_successful_processing_timestamp "
   channel    |   last_processing_timestamp   |
last_successful_processing_timestamp
--------------+-------------------------------+--------------------------------------
 3o0mNjcS4CMr | 2023-01-11 12:01:40.016988+01 | 2023-01-11
12:01:40.016988+01
(1 row)



view thread (2+ messages)  latest in thread

Message-ID: <17745-f71067ba7f24e1cb@postgresql.org>
Permalink:  ../17745-f71067ba7f24e1cb@postgresql.org/
Also on:    postgresql.org/message-id/17745-f71067ba7f24e1cb@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, pawel.jan.podgorski@gmail.com
  Subject: Re: BUG #17745: RETURNING after INSERT does not return the same structure of response
  In-Reply-To: <17745-f71067ba7f24e1cb@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