pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: pgsql-bugs@postgresql.org
Subject: Crash in json_to_record()
Date: Fri, 07 Feb 2014 10:24:01 -0800
Message-ID: <1391797441.15160.41.camel@jdavis> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The attached script crashes on master. It looks like it assumes
get_call_result_type() always returns a non-NULL tupdesc.

Regards,
	Jeff Davis

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

crash.sql (text/x-sql, 164B) download drop table t; create table t(j json); insert into t values('{"a": 1, "b": "two", "c": [1,2,3], "d": {"x": "X", "y": "Y"}}'); select json_to_record(j, true) from t;

view thread (2+ messages)  latest in thread

Message-ID: <1391797441.15160.41.camel@jdavis>
Permalink:  ../1391797441.15160.41.camel@jdavis/
Also on:    postgresql.org/message-id/1391797441.15160.41.camel@jdavis

 · 

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 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: pgsql@j-davis.com
  Subject: Re: Crash in json_to_record()
  In-Reply-To: <1391797441.15160.41.camel@jdavis>
  References: <1391797441.15160.41.camel@jdavis>

* 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