Re: default values - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: default values
Date
Msg-id 35EDEDB5.536EE3F0@krs.ru
Whole thread Raw
In response to default values  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
List pgsql-hackers
Thomas G. Lockhart wrote:
>
> In transcribing Jose's reference page docs, I've come across examples
> where Jose has exposed deficiencies in Postgres' support of SQL92. I've
> fixed several (easier than transcribing more words :) and I've run into
> a bit of trouble on the latest one with the
>
>   CREATE TABLE tablename DEFAULT VALUES
>
> statement. I changed the parser to allow this syntax and just use a nil
> pointer for the column list. Everything works OK except that the first
> column's default value is not assigned correctly.
>
> Any ideas on where to look? I'll probably commit the changes to gram.y
> anyway, since it almost works. Examples below...

DEFAULT is handled in parser/analyze.c:transformInsertStmt()...

Vadim

pgsql-hackers by date:

Previous
From: Vadim Mikheev
Date:
Subject: Re: [HACKERS] Adding PRIMARY KEY info
Next
From: David Hartwig
Date:
Subject: Re: [HACKERS] Core dump in regression tests.