Re: Fwd: REWRITE_INVOKE_MAX and "query may contain cycles"

From: Eric B(dot)Ridge <ebr(at)tcdi(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Fwd: REWRITE_INVOKE_MAX and "query may contain cycles"
Date: 2003-02-21 16:11:48
Message-ID: 2E568417-45B7-11D7-9F63-0003937E3354@tcdi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, February 20, 2003, at 10:20 PM, Tom Lane wrote:
> "Eric B. Ridge" <ebr(at)tcdi(dot)com> writes:
>> INSERT INTO foo (id, title, type) VALUES (<default>, 'whatever',
>> <default>);
>
>> Is there no keyword for getting the DEFAULT value of a column when
>> doing an INSERT?
>
> Not sure how far back this goes, but in 7.3 you can say DEFAULT:
<snip>
> alter table foo_view alter column id set default
> nextval('seq_foo_id');
>
> and away you go.

Thanks for this information. Y'all rock. These two things are enough
to convince me to upgrade to 7.3 immediately.

eric

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-02-21 16:17:11 Re: Slow update - index problem?
Previous Message Christopher Murtagh 2003-02-21 16:07:21 Slow update - index problem?