Re: ALTER SCHEMA problem - Mailing list pgsql-bugs

From Bruno Wolff III
Subject Re: ALTER SCHEMA problem
Date
Msg-id 20030821023221.GA24904@wolff.to
Whole thread Raw
In response to Re: ALTER SCHEMA problem  ("Chris M" <chris@none.none>)
List pgsql-bugs
On Tue, Aug 19, 2003 at 21:24:50 +0800,
  Chris M <chris@none.none> wrote:
> I also find something magic when using sequence.
>     select nextval('seq_test');
> and
>     select nextval('"seq_test"');
> both refer to the same sequence: seq_test.
>
> If I want to use a sequence with name: SEQ_TEST,
> I have to write it as:
>     select nextval('"SEQ_TEST"');
>
> So single quotes '...' here not like those in WHERE clause.

That depends on your point of view. As far as what gets passed to the nextval
function 's work just like they do in the where clause. However the value
gets treated like the strings used to represent identifiers in SQL where
"s are used to quote identifier names.

> And I think ORACLE's syntax is better.

At some point someone will probably implement the Oracle syntax.

pgsql-bugs by date:

Previous
From: Arnold Mavromatis
Date:
Subject: Re: postgresql 7.3.2 bug on date '1901-12-13' and '1901-12
Next
From:
Date:
Subject: Returned due to virus; Was: Re: Re: My details