From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: jan.magnusson0@gmail.com
Subject: BUG #15716: pgadmin 4.3: row_to_json error
Date: Tue, 26 Mar 2019 15:18:07 +0000
Message-ID: <15716-ecbe251902df182f@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15716
Logged by: Jan Magnusson
Email address: jan.magnusson0@gmail.com
PostgreSQL version: 11.2
Operating system: windows 10 pro
Description:
The row_to_json() function does not produce any output data, only message.
b.r. Jan
------------------------------------------------------------------------------------
CREATE SCHEMA testing AUTHORIZATION postgres;
CREATE TABLE testing.batch
(
batch_id integer NOT NULL,
max_record integer,
record_count integer,
creation_ts timestamp without time zone DEFAULT now(),
CONSTRAINT batch_id_pkey PRIMARY KEY (batch_id)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
insert into testing.batch values(1, now(), 0, 0);
insert into testing.batch values(2, now(), 1, 1);
select row_to_json(row(batch_id)) from testing.batch;
or
select row_to_json(b)
from (select * from testing.batch) b;
They only produce the following message, but no output:
Successfully run. Total query runtime: 70 msec.
2 rows affected.
Other client output of the latter:
{"batch_id":1,"max_record":0,"record_count":0,"creation_ts":"2019-03-26T16:44:34.338218"}
{"batch_id":2,"max_record":1,"record_count":1,"creation_ts":"2019-03-26T16:51:33.196218"}
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-bugs@postgresql.org
Cc: noreply@postgresql.org, jan.magnusson0@gmail.com
Subject: Re: BUG #15716: pgadmin 4.3: row_to_json error
In-Reply-To: <15716-ecbe251902df182f@postgresql.org>
References: <15716-ecbe251902df182f@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