Re: [HACKERS] empty/automatic insert availability

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Daniel Péder <dpeder(at)infoset(dot)cz>
Cc: "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] empty/automatic insert availability
Date: 1999-10-15 04:55:54
Message-ID: 3806B3DA.95DEF831@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> it would be good idea to enable "empty automatic insert" like this:
> mydb => create table pgx_replid ( repltime time DEFAULT current_time );
> mydb => insert into pgx_replid;
> the above should insert the value of current_time into database pgx_replid, however it is
> impossible yet (ver.6.3.x / 6.5.2).

Not true :)

We support the SQL92-standard syntax:

mydb => insert into pgx_replid default values;

Have fun with it...

- Thomas

--
Thomas Lockhart lockhart(at)alumni(dot)caltech(dot)edu
South Pasadena, California

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Carsten Huettl 1999-10-15 05:21:11 Re: [GENERAL] ld.so failed
Previous Message Bruce Momjian 1999-10-15 04:54:29 int8