pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Rogerson <steve.pg@yewtc.demon.co.uk>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: postgres 11 issue?
Date: Wed, 03 Jul 2019 15:36:56 -0400
Message-ID: <3061.1562182616@sss.pgh.pa.us> (raw)
In-Reply-To: <6fd9353d-96f5-7114-13cf-f660a581d985@yewtc.demon.co.uk>
References: <20190606160610.GA17846@alvherre.pgsql>
	<6fd9353d-96f5-7114-13cf-f660a581d985@yewtc.demon.co.uk>

Steve Rogerson <steve.pg@yewtc.demon.co.uk> writes:
>> It seems a bug to me. Can you share an anonymized/simplified definition
>> of that table that reproduces the problem?

> Ok See attached sql set up. I guess you need to to a createdb first.

It looks like what's happening is that the result of my_from_local()
is being stored into the table as an anonymous record value rather
than a value of type my_timestamp.  (The originating session can figure
out what the anonymous record type is, but no other session can.)
That should be fixed, but in the meantime you could dodge the problem by
declaring my_from_local()'s v_result variable as my_timestamp not record.

			regards, tom lane





view thread (10+ messages)  latest in thread

Message-ID: <3061.1562182616@sss.pgh.pa.us>
Permalink:  ../3061.1562182616@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3061.1562182616@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, steve.pg@yewtc.demon.co.uk
  Subject: Re: postgres 11 issue?
  In-Reply-To: <3061.1562182616@sss.pgh.pa.us>
  References: <20190606160610.GA17846@alvherre.pgsql> <6fd9353d-96f5-7114-13cf-f660a581d985@yewtc.demon.co.uk> <3061.1562182616@sss.pgh.pa.us>

* 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