Re: duplicate primary key entries? - Mailing list pgsql-general

From Randolf Richardson
Subject Re: duplicate primary key entries?
Date
Msg-id Xns943E64597DBF7rr8xca@200.46.204.72
Whole thread Raw
In response to duplicate primary key entries?  (Baldur Norddahl <bbn-pgsql.general@clansoft.dk>)
List pgsql-general
> No, there can be no space after 'any' because the foreign key prevents
> it (which you of course could not check since I didn't show the content
> of the foreign table).
>
> But anyway, here is the output:
>
> webshop=# select oid,id,'['||locale||']','['||name||']' from content_loc
> where id=20488 and locale='any';
>    oid   |  id   | ?column? |    ?column?
> ---------+-------+----------+----------------
>  9781056 | 20488 | [any]    | [Rise Part II]
>  9781058 | 20488 | [any]    | [Rise Part II]
> (2 rows)

        Is there a function that can display the contents of the fourth column
in hexadecimal?  This would make it easy to determine if the spaces weren't
really spaces (e.g., ASCII character 32 could be replaced with character 255
or, in some cases, even character 9).

        Another thought I had was if there is a transaction in progress.  Do
you get the same results if you omit "oid" from the SELECT statement?

--
Randolf Richardson - rr@8x.ca
Vancouver, British Columbia, Canada

Please do not eMail me directly when responding
to my postings in the newsgroups.

pgsql-general by date:

Previous
From: Randolf Richardson
Date:
Subject: Re: [OT... But couldn't resist!] Master/Slave
Next
From: Randolf Richardson
Date:
Subject: Re: Open source data modeling tools for PostgreSQL