pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedJSON_POPULATE_RECORDSET empty array bug
3+ messages / 2 participants
[nested] [flat]
* JSON_POPULATE_RECORDSET empty array bug
@ 2018-12-21 14:35 Vladimír Houba ml. <vladojr@prosoft.sk>
0 siblings, 1 reply; 3+ messages in thread
From: Vladimír Houba ml. @ 2018-12-21 14:35 UTC (permalink / raw)
To: pgsql-bugs
Hello,
the following command works as expected
SELECT * FROM JSON_POPULATE_RECORDSET(NULL::information_schema.columns,
'[{}]')
but the following command crashes the backend
SELECT * FROM JSON_POPULATE_RECORDSET(NULL::information_schema.columns,
'[]')
server log
2018-12-21 15:34:11.710 CET [581] LOG: server process (PID 26654) was
terminated by signal 11: Segmentation fault
2018-12-21 15:34:11.710 CET [581] DETAIL: Failed process was running:
DECLARE OmniDB_a6dd10a962824e70961053e6809c61fc CURSOR WITH HOLD FOR SELECT
* FROM JSON_POPULATE_RECORDSET(NULL::information_schema.columns, '[]'::JSON)
2018-12-21 15:34:11.710 CET [581] LOG: terminating any other active server
processes
2018-12-21 15:34:11.710 CET [26488] WARNING: terminating connection
because of crash of another server process
2018-12-21 15:34:11.710 CET [26488] DETAIL: The postmaster has commanded
this server process to roll back the current transaction and exit, because
another server process exited abnormally and possibly corrupted shared
memory.
2018-12-21 15:34:11.710 CET [26488] HINT: In a moment you should be able
to reconnect to the database and repeat your command.
2018-12-21 15:34:11.711 CET [26626] rekre@rekre WARNING: terminating
connection because of crash of another server process
2018-12-21 15:34:11.711 CET [26626] rekre@rekre DETAIL: The postmaster has
commanded this server process to roll back the current transaction and
exit, because another server process exited abnormally and possibly
corrupted shared memory.
2018-12-21 15:34:11.711 CET [26626] rekre@rekre HINT: In a moment you
should be able to reconnect to the database and repeat your command.
2018-12-21 15:34:11.714 CET [581] LOG: all server processes terminated;
reinitializing
2018-12-21 15:34:11.737 CET [26655] LOG: database system was interrupted;
last known up at 2018-12-21 15:33:26 CET
2018-12-21 15:34:11.829 CET [26655] LOG: database system was not properly
shut down; automatic recovery in progress
2018-12-21 15:34:11.831 CET [26655] LOG: redo starts at 24/E1C64E90
2018-12-21 15:34:11.831 CET [26655] LOG: invalid record length at
24/E1C64EC8: wanted 24, got 0
2018-12-21 15:34:11.831 CET [26655] LOG: redo done at 24/E1C64E90
2018-12-21 15:34:11.844 CET [581] LOG: database system is ready to accept
connections
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: JSON_POPULATE_RECORDSET empty array bug
@ 2018-12-21 15:39 Tom Lane <tgl@sss.pgh.pa.us>
parent: Vladimír Houba ml. <vladojr@prosoft.sk>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2018-12-21 15:39 UTC (permalink / raw)
To: Vladimír Houba ml. <vladojr@prosoft.sk>; +Cc: pgsql-bugs
=?UTF-8?Q?Vladim=C3=ADr_Houba_ml=2E?= <vladojr@prosoft.sk> writes:
> but the following command crashes the backend
> SELECT * FROM JSON_POPULATE_RECORDSET(NULL::information_schema.columns,
> '[]')
Hm, works for me. What version are you testing?
[ digs in commit log... ] If that's 11.0 or 11.1, I think this was
resolved by commit 595220a3a.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: JSON_POPULATE_RECORDSET empty array bug
@ 2018-12-21 16:15 Vladimír Houba ml. <vladojr@prosoft.sk>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Vladimír Houba ml. @ 2018-12-21 16:15 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
Hi Tom,
Im running
PostgreSQL 11.0 (Ubuntu 11.0-1.pgdg18.04+2) on x86_64-pc-linux-gnu,
compiled by gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0, 64-bit
Okay, I will check again after 11.2 is released.
Thanks
On Fri, Dec 21, 2018 at 4:49 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> =?UTF-8?Q?Vladim=C3=ADr_Houba_ml=2E?= <vladojr@prosoft.sk> writes:
> > but the following command crashes the backend
> > SELECT * FROM JSON_POPULATE_RECORDSET(NULL::information_schema.columns,
> > '[]')
>
> Hm, works for me. What version are you testing?
>
> [ digs in commit log... ] If that's 11.0 or 11.1, I think this was
> resolved by commit 595220a3a.
>
> regards, tom lane
>
>
--
S pozdravom / Best regards
Vladimír Houba jr.
Prosoft <http://www.prosoft.sk;, Slovakia
+421 915 708 171
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-12-21 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-12-21 14:35 JSON_POPULATE_RECORDSET empty array bug Vladimír Houba ml. <vladojr@prosoft.sk>
2018-12-21 15:39 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-12-21 16:15 ` Vladimír Houba ml. <vladojr@prosoft.sk>
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