Re: Select All Columns

From: Douglas McNaught <doug(at)mcnaught(dot)org>
To: "Tan Chen Yee" <tancy(at)gussmanntech(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Select All Columns
Date: 2005-09-01 14:26:43
Message-ID: m2fysoeue4.fsf@Douglas-McNaughts-Powerbook.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Tan Chen Yee" <tancy(at)gussmanntech(dot)com> writes:

> If I want to retrieve all columns from a table, is there any disadvantage by
> using select *
> instead of listing all the columns ? Will select * cause overhead, more
> times to run ?

No, it shouldn't make any difference there. The disadvantage of
SELECT * is that adding, removing or changing columns can break your
client code (depending on what client library you're using) because
the records returned by a query will change format without warning.

-Doug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bob 2005-09-01 14:49:05 Re: Select All Columns
Previous Message Tan Chen Yee 2005-09-01 14:19:15 Select All Columns