Re: Permanent alias for postgresql table

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Permanent alias for postgresql table
Date: 2009-03-12 13:55:57
Message-ID: gpb49e$r7c$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Marco Lechner 2009-03-12 14:26:47 Re: Permanent alias for postgresql table
Previous Message Marco Lechner 2009-03-12 12:59:09 Permanent alias for postgresql table