pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Steve Rogerson <steve.pg@yewtc.demon.co.uk>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: postgres 11 issue?
Date: Wed, 3 Jul 2019 12:32:00 -0700
Message-ID: <b5f3e4b1-ef18-c955-1d0d-15e3a0cd1214@aklaver.com> (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>

On 7/3/19 9:42 AM, Steve Rogerson wrote:
> 
>> 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.
> 
> so :
> 
> testdb=# \i db.sql
> DROP TRIGGER
> DROP TABLE
> ...
> 
> testdb=# select * from user_passwords ;
>   name | timestamp | password
> ------+-----------+----------
> (0 rows)
> 
> testdb=# insert into users (name, password) values  ('fred', 'sdfsdf');
> INSERT 0 1
> 
> testdb=# select * from user_passwords ;
>   name |                  timestamp                  | password
> ------+---------------------------------------------+----------
>   fred | ("2019-07-03 16:37:07.124207",01:00:00,BST) | sdfsdf
> (1 row)
> 
> 
> testdb=# \q
> steve@work-hp pg_prob$ psql testdb
> psql (11.3)
> Type "help" for help.
> 
> testdb=# select * from user_passwords ;
> ERROR:  record type has not been registered
> 
> Same thing (record type has not been registered/) in a different session that
> previously showed user_passwords to be empty in the "normal" way. before the
> insert.
> 
> 
> It's taken me a while to get this to get it to go wrong and I don't think that
> all the complexity is needed, but this at least is consistent.

Hmm:

test=> select * from user_passwords ;
ERROR:  record type has not been registered

test=> select my_from_local(now());
                 my_from_local
----------------------------------------------
  ("2019-07-03 19:29:34.587891",-07:00:00,PDT)
(1 row)

test=> select * from user_passwords ;
  name |                  timestamp                   | password
------+----------------------------------------------+----------
  fred | ("2019-07-03 19:28:07.082895",-07:00:00,PDT) | sdfsdf
(1 row)

Now to figure out why?

> 
> 
> Steve
> 
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (10+ messages)  latest in thread

Message-ID: <b5f3e4b1-ef18-c955-1d0d-15e3a0cd1214@aklaver.com>
Permalink:  ../b5f3e4b1-ef18-c955-1d0d-15e3a0cd1214@aklaver.com/
Also on:    postgresql.org/message-id/b5f3e4b1-ef18-c955-1d0d-15e3a0cd1214@aklaver.com

 · 

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: adrian.klaver@aklaver.com, steve.pg@yewtc.demon.co.uk
  Subject: Re: postgres 11 issue?
  In-Reply-To: <b5f3e4b1-ef18-c955-1d0d-15e3a0cd1214@aklaver.com>
  References: <20190606160610.GA17846@alvherre.pgsql> <6fd9353d-96f5-7114-13cf-f660a581d985@yewtc.demon.co.uk> <b5f3e4b1-ef18-c955-1d0d-15e3a0cd1214@aklaver.com>

* 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