Re: OT: Apache::Session::DBI vs postgresql? --help

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alex Pilosov <alex(at)pilosoft(dot)com>
Cc: will trillich <will(at)serensoft(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: OT: Apache::Session::DBI vs postgresql? --help
Date: 2001-06-15 18:24:59
Message-ID: 25250.992629499@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>> To use this module, you will need these columns in a table
>> called 'sessions':
>>
>> id char(16)
>> length int(11)
>> a_session text
>>
>> which might be ducky for mysql, but on postgresql (7.0.3 anyhow)
>> "length" is illegal as a field name.

"length" is perfectly legal as a field name:

regression=# create table foo (f1 int, length int);
CREATE

The problem is that "int(11)", which is a MySQL-ism through and through;
there is no such construct in SQL92. We'd take "int", or "bigint", or
"int8", or "numeric(11)", or "decimal(11)" ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Koenig 2001-06-15 18:28:23 Progress -> PostgreSQL Replication?
Previous Message Tom Lane 2001-06-15 18:16:08 Re: Indexing varchar[]'s