Re: insert serial numbers

From: Alban Hertroys <alban(at)magproductions(dot)nl>
To: Albert Vernon Smith <contact1(at)absentia(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: insert serial numbers
Date: 2006-01-04 09:55:55
Message-ID: 43BB9BAB.4@magproductions.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Albert Vernon Smith wrote:
> CREATE FUNCTION "return_one_id" () RETURNS "trigger" AS '

Is there any reason you force your identifiers to be case sensitive?

> CREATE TRIGGER return_one_id BEFORE INSERT OR UPDATE ON two FOR EACH
>> CREATE TABLE "one" (
>> "one_id" BIGSERIAL,
>> "text" text NOT NULL,
>> CONSTRAINT "iu_text" UNIQUE (text)
>> )
>> CREATE TABLE "two" (
>> "two_id" BIGSERIAL,
>> "text" text NOT NULL,
>> "one_id" bigint,

--
Alban Hertroys
alban(at)magproductions(dot)nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede

//Showing your Vision to the World//

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Robert Osowiecki 2006-01-04 10:18:03 Unique transaction ID
Previous Message A. Kretschmer 2006-01-04 07:09:38 Re: generic way to retrieve array as rowset