copy command and array of composite types?

Поиск
Список
Период
Сортировка
От Jon Norman
Тема copy command and array of composite types?
Дата
Msg-id 004d01c88ea4$cc9e0d30$820b010a@normanm90
обсуждение исходный текст
Ответы Re: copy command and array of composite types?
Список pgsql-sql
I'm using PostgreSQL 8.3.1.
 
I've created the following composite type:
 
CREATE TYPE expression_event_type AS (
event_id varchar(10),
expr_indices smallint[]
);
 
which is used with the following table definition:
 
CREATE TABLE boolean_expr_table(
expr_id smallint PRIMARY KEY,
expr_name varchar(100) NOT NULL,
expression varchar(256) NOT NULL,
event_indices expression_event_type[] NOT NULL,
true_cases smallint[] NOT NULL
);
 
Question: What is the correct way to load the event_indices column using the copy command and a external file?
 
I've tried: {(1,{1,2,3})} without success. 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Deferrable NOT NULL REFERENCES ... for two-way referential relationship
Следующее
От: Guy Fraser
Дата:
Сообщение: Re: copy command and array of composite types?