Re: Select All Columns - Mailing list pgsql-general

From Douglas McNaught
Subject Re: Select All Columns
Date
Msg-id m2fysoeue4.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to Select All Columns  ("Tan Chen Yee" <tancy@gussmanntech.com>)
List pgsql-general
"Tan Chen Yee" <tancy@gussmanntech.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

pgsql-general by date:

Previous
From: "Tan Chen Yee"
Date:
Subject: Select All Columns
Next
From: Bob
Date:
Subject: Re: Select All Columns