Re: [pgsql-general] Daily digest v1.9081 (14 messages)

From: Oliver Kohll - Mailing Lists <oliver(dot)lists(at)gtwm(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [pgsql-general] Daily digest v1.9081 (14 messages)
Date: 2009-06-08 19:08:02
Message-ID: 1E5E0C2C-DEB8-41FD-AAF9-D98B87BC382B@gtwm.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8 Jun 2009, at 17:23, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:

>>> Is there a way when creating a table to limit it to one row? That
>>> is,
>>> without using a stored procedure?
>>>
>>> I searched the documentation, but didn't find anything.
>>>
>>
>>
>> CREATE TABLE x (...);
>>
>> CREATE UNIQUE INDEX x_only_one_row ON ((1));
>
> very clever :D
>
> merlin

To clever for me, I don't understand what's going on and can't
replicate it in my 8.3. Any expansion?

Rgs
Oliver

oliver(at)gtwm(dot)co(dot)uk / 0845 456 1810 / 07814 828608
www.gtwm.co.uk - company
www.gtportalbase.com - product

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Keaton Adams 2009-06-08 19:30:50 Re: Any way to bring up a PG instance with corrupted data in it?
Previous Message Oliver Kohll - Mailing Lists 2009-06-08 19:04:16 Re: Sum of multiplied deltas