Re: Permanent alias for postgresql table

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Permanent alias for postgresql table
Дата
Msg-id gpb49e$r7c$1@ger.gmane.org
обсуждение исходный текст
Ответ на Permanent alias for postgresql table  ("Marco Lechner" <marco.lechner@geographie.uni-freiburg.de>)
Список pgsql-sql
Marco Lechner, 12.03.2009 13:59:
> Hi list,
> 
> I'm searching for a way to create permanent alias for
> tablenames in postgresql. We are storing various versions
> of a routable network in postgresql (postgis, pgrouting)
> and access a certain version with a bunch of php-skripts.
> We like to use aliases for the "currently used tables" oo
> be able to relink the current tables rapidly by changing
> the alias target.
> 
> Any idea - or is this approach nonsense?

A view? 

CREATE VIEW constant_table_name
AS 
SELECT *
FROM current_table

Thomas



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Marco Lechner"
Дата:
Сообщение: Permanent alias for postgresql table
Следующее
От: "Marco Lechner"
Дата:
Сообщение: Re: Permanent alias for postgresql table