Re: sequences in schemas

Поиск
Список
Период
Сортировка
От Manfred Koizar
Тема Re: sequences in schemas
Дата
Msg-id i96sj05hr3i0f3dso0ld5idacogtorbi6i@email.aon.at
обсуждение исходный текст
Ответ на sequences in schemas  (Joe Maldonado <jmaldonado@webehosting.biz>)
Список pgsql-general
On Tue, 31 Aug 2004 11:09:07 -0400, Joe Maldonado
<jmaldonado@webehosting.biz> wrote:
>CREATE SCHEMA joe
>    CREATE SEQUENCE joe_seq start 1
>    CREATE TABLE joe_table (int id, varchar name)
>;
>
>and I get a syntax error for SEQUENCE.

This will work in 8.0.

http://www.postgresql.org/docs/7.4/static/sql-createschema.html:
schema_element
    An SQL statement defining an object to be created within the schema.
Currently, only CREATE TABLE, CREATE VIEW, and GRANT are accepted as
clauses within CREATE SCHEMA.

http://developer.postgresql.org/docs/postgres/sql-createschema.html:
schema_element
    An SQL statement defining an object to be created within the schema.
Currently, only CREATE TABLE, CREATE VIEW, CREATE INDEX, CREATE
SEQUENCE, CREATE TRIGGER and GRANT are accepted as clauses within CREATE
SCHEMA.

In the meantime "Other kinds of objects may be created in separate
commands after the schema is created."

Servus
 Manfred

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Restoring dump of multiuser databases
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: Gentoo for production DB server?