Re: Table with seemingly duplicated primary key values - Mailing list pgsql-general

From Aleksander Łukasz
Subject Re: Table with seemingly duplicated primary key values
Date
Msg-id CAGTk8=OVyGCF8ukw=E-O4uWpYFm-axfOjUUYGXL+7srDdLC--Q@mail.gmail.com
Whole thread Raw
In response to Re: Table with seemingly duplicated primary key values  (Melvin Davidson <melvin6925@gmail.com>)
Responses Re: Table with seemingly duplicated primary key values  (Melvin Davidson <melvin6925@gmail.com>)
List pgsql-general
Hi, thanks for your reply.

2015-12-22 16:34 GMT+01:00 Melvin Davidson <melvin6925@gmail.com>:
Please. Always, ALWAYS, give the PostgreSQL version and O/S when reporting a problem.

First, WHAT IS THE POSTGRESQL VERSION?????
       WHAT IS THE O/S?????

# select version();
                                               version                                                
------------------------------------------------------------------------------------------------------
 PostgreSQL 9.4.5 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2, 64-bit
(1 row)

 
       Then try this:
select a.ctid, a.id, a.field1,
          b.ctid, b.id, b.field1
  from some_table a,
         some_table b
 WHERE a.ctid <> b.ctid
   AND a.id = b.id;
 
    ctid    |   id    |               field1             |    ctid    |   id    |               field1                
------------+---------+----------------------------------+------------+---------+----------------------------------
 (79664,59) | 2141750 |                                  | (79772,23) | 2141750 | some_value1
 (79772,23) | 2141750 | some_value1                      | (79664,59) | 2141750 | 
(2 rows)
 

pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: uuid-ossp: Performance considerations for different UUID approaches?
Next
From: oleg yusim
Date:
Subject: Re: Session Identifiers