pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: evgeni-klimov@yandex.ru, pgsql-bugs@lists.postgresql.org, Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column
Date: Mon, 05 Mar 2018 14:38:33 -0500
Message-ID: <26456.1520278713@sss.pgh.pa.us> (raw)
In-Reply-To: <20180305061325.GF2266@paquier.xyz>
References: <152009601619.21242.262498029671910378@wrigleys.postgresql.org>
	<31194.1520098424@sss.pgh.pa.us>
	<87po4lkkaj.fsf@news-spur.riddles.org.uk>
	<20180304235654.GA32165@paquier.xyz>
	<87lgf7l6sj.fsf@news-spur.riddles.org.uk>
	<21016.1520228672@sss.pgh.pa.us>
	<20180305061325.GF2266@paquier.xyz>

Michael Paquier <michael@paquier.xyz> writes:
> On Mon, Mar 05, 2018 at 12:44:32AM -0500, Tom Lane wrote:
>> Going forward, maybe we should change the T_Integer case to either int64
>> or int32, so that it's not got a platform-dependent range.

> Serial columns using bigint as type would need int64 anyway, no?  Why
> int32?

int32 might be less work to make fully portable.  I don't recall exactly
what-all we do with T_Integer, but if we try to do sscanf() to produce the
value for instance, that's a problem.  (Note that configure's tests for
64-bit support only cover sprintf, not sscanf.)

Certainly int64 would be a more forward-looking choice, it just seems
like possibly more work.

			regards, tom lane




view thread (13+ messages)  latest in thread

Message-ID: <26456.1520278713@sss.pgh.pa.us>
Permalink:  ../26456.1520278713@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26456.1520278713@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, andrew@tao11.riddles.org.uk, peter.eisentraut@2ndquadrant.com
  Subject: Re: BUG #15096: Unable to CREATE TABLE LIKE with bigint identity column
  In-Reply-To: <26456.1520278713@sss.pgh.pa.us>
  References: <152009601619.21242.262498029671910378@wrigleys.postgresql.org> <31194.1520098424@sss.pgh.pa.us> <87po4lkkaj.fsf@news-spur.riddles.org.uk> <20180304235654.GA32165@paquier.xyz> <87lgf7l6sj.fsf@news-spur.riddles.org.uk> <21016.1520228672@sss.pgh.pa.us> <20180305061325.GF2266@paquier.xyz> <26456.1520278713@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