Re: Second question on schemas and INDEX(es) ...

Поиск
Список
Период
Сортировка
От Robert Treat
Тема Re: Second question on schemas and INDEX(es) ...
Дата
Msg-id 1066249256.2070.1.camel@camel
обсуждение исходный текст
Ответ на Second question on schemas and INDEX(es) ...  ("Marc G. Fournier" <scrappy@hub.org>)
Ответы Re: Second question on schemas and INDEX(es) ...  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-hackers
On Wed, 2003-10-15 at 16:00, Marc G. Fournier wrote:
> 
> Okay, after feeling stupid about the last one (altho I hadn't thought to
> read the CREATE INDEX page, only the CREATE SCHEMA one), I really hate to
> ask this one ... but ... is this documented somewhere also:
> 
> CREATE SCHEMA company_00244
>   CREATE TABLE traffic ( ip_id int4, port int4, bytes bigint, runtime timestamp )
>   CREATE INDEX traffic_dist ON traffic USING BTREE ( ip_id, port )
>   CREATE INDEX traffic_time ON traffic USING btree ( hour_trunc(runtime));
> 
> ERROR:  parser: parse error at or near "INDEX" at character 122
> 
> or, is there an obvious error that I'm just not seeing?
> 
> The CREATE SCHEMA page shows CREATE TABLE and CREATE VIEW, so should I
> consider CREATE INDEX no supported since it wasn't part of the example?
>

If I'm right your having a heck of a bad day, but I believe the problem
is you have no ; after each of your sql statements...

Robert Treat
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL



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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Second question on schemas and INDEX(es) ...
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Second question on schemas and INDEX(es) ...