Re: select issue with order v8.1 - Mailing list pgsql-general

From Scott Marlowe
Subject Re: select issue with order v8.1
Date
Msg-id dcc563d11002261452u63a369b6p1cac23c3be103c46@mail.gmail.com
Whole thread Raw
In response to Re: select issue with order v8.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: select issue with order v8.1  (Terry <td3201@gmail.com>)
List pgsql-general
On Fri, Feb 26, 2010 at 3:46 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Terry <td3201@gmail.com> writes:
>> I am somewhat confused.  My app is detecting it as a serial data type
>> but describing the table shows that its an integer.  What am I
>> missing?
>
>> dssystem=# \d clients_event_log
>>                                        Table "public.clients_event_log"
>>      Column     |          Type           |
>>  Modifiers
>> ----------------+-------------------------+-------------------------------------------------------------------
>>  ev_id          | integer                 | not null default
>> nextval('clients_event_log_ev_id_seq'::regclass)
>
> Nothing.  "Serial" is nothing but a shorthand for an integer column
> with a default like that.

And a dependency for the sequence on the column.  I wonder if Terry's
application is sorting through dep info to make a bad decision...

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: select issue with order v8.1
Next
From: Hiroshi Inoue
Date:
Subject: Re: trouble with to_char('L')