From: | Vladimir Litovka <pgsqll(at)barnet(dot)kharkov(dot)ua> |
---|---|
To: | PgSQL-sql <pgsql-sql(at)postgresql(dot)org> |
Subject: | Some questions |
Date: | 1998-11-13 18:09:38 |
Message-ID: | Pine.LNX.4.05.9811131934540.6359-100000@barnet.kharkov.ua |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hello!
There is table of character types in manual, where the 'text' type suggested
as the best choice. 'text' is variable length type and I think, that
fixed length's types (such as char(n)) will be faster, than variable
length's ones? Am I wrong?
The second question is more complex :) It about CREATE TABLE statement. Is
there difference between following statements?
create table aaa (i int2 UNIQUE);
and
create table aaa (i int2, CONSTRAINT aaa_i_key UNIQUE(i));
First case uses 'column constraint' and second - 'table constraint'. Manual
says: "A column constraint is an integrity constraint defined as part of a
column definition, and logically becomes a table constraint as soon as it
is created". Am I understand correctly - it is never mind where to define
(any) constraints - all of them does the same?
And last: what does it mean the following statement in the CREATE TABLE?
...
len INTERVAL HOUR TO MINUTE
...
Thank you :)
---
Vladimir Litovka <doka(at)webest(dot)com>
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Good | 1998-11-14 12:00:42 | abusing an aggregate funct |
Previous Message | Tom Lane | 1998-11-13 14:49:50 | Re: Can't starting postmaster with -B 512 Option |