Re: duplicate primary key entries?

From: Randolf Richardson <rr(at)8x(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: duplicate primary key entries?
Date: 2003-11-25 18:04:02
Message-ID: Xns943E64597DBF7rr8xca@200.46.204.72
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)8x(dot)ca
Vancouver, British Columbia, Canada

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Randolf Richardson 2003-11-25 18:08:53 Re: PostgreSQL is much faster than MySQL, only when...
Previous Message Vernon Smith 2003-11-25 18:01:12 (No Subject)