how to alias a table - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject how to alias a table
Date
Msg-id 20100613170748.57e07c22@dawn.webthatworks.it
Whole thread Raw
List pgsql-general
I'm refactoring some code and I'll find helpful to be able to alias
tables.

What I'd like to do would be to refer to the same table with an
alias in the code and later substitute the alias with an actual VIEW.

Of course I could define a view as
select * from original_table
right from the start but I'm worried this may incur in some overhead
I currently can't afford.

thanks

--
Ivan Sergio Borgonovo
http://www.webthatworks.it


pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: table partition or index
Next
From: Tim Landscheidt
Date:
Subject: Re: how to alias a table