Re: Permanent alias for postgresql table - Mailing list pgsql-sql

From Thomas Kellerer
Subject Re: Permanent alias for postgresql table
Date
Msg-id gpb6r7$5o0$1@ger.gmane.org
Whole thread Raw
In response to Re: Permanent alias for postgresql table  ("Marco Lechner" <marco.lechner@geographie.uni-freiburg.de>)
List pgsql-sql
Marco Lechner, 12.03.2009 15:26:
> Hi Mina,
> 
> thanks for your answer. I thought about that, but don't
> views decrease performance, because they are "calculated"
> on access?

I'm not sure what you mean with "calculated". A view is just a SQL query.
There is no difference in executing the SQL query that's behind a view or the view itself. Except for the minimal time
ittakes to retrieve the view definition. 
 

But I would never sacrifice easy of development or usage for the microseconds of overhead the VIEW generates. 

And the "overhead" (if at all) will be neglectable compared to the time it takes to return the result.

Thomas



pgsql-sql by date:

Previous
From: Joshua Tolley
Date:
Subject: Re: Permanent alias for postgresql table
Next
From: Duffer Do
Date:
Subject: select count of all overlapping geometries and return 0 if none.