Re: OID Wrap - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: OID Wrap
Date
Msg-id 200106112042.f5BKgGR06027@candle.pha.pa.us
Whole thread Raw
In response to Re: OID Wrap  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> mlw <markw@mohawksoft.com> writes:
> > cdinfo=# create view test as select * from zsong  ;
> > ERROR:  pg_atoi: error reading "2156109797": Numerical result out of
> > range
> 
> Is this 7.1?  I thought we'd fixed all the places that treated OID
> values as signed.

It is 7.0.3.  7.1 has doubled the size of oid.

As a test using the CVS copy, I ran:CREATE TEMPORARY TABLE pgdump_oid (dummy int4);COPY pgdump_oid WITH OIDS FROM
stdin;3000000000     0\.DROP TABLE pgdump_oid;
 

and then to show it worked:test=> create table test (x int);CREATEtest=> insert into test values (1);INSERT 3000000011
1

I then ran the regression tests, and they all passed.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Re: REPLACE INTO table a la mySQL
Next
From: Jim Mercer
Date:
Subject: Re: inet/cidr type comparisons