Re: aliases for sequences and other DB objects?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Agoston Postgres <agostonpostgres(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: aliases for sequences and other DB objects?
Date: 2009-06-09 20:54:47
Message-ID: 20090609205447.GI5938@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Agoston Postgres wrote:
> Hi!
>
> Is it possible in Postgres to specify aliases for various DB objects, such as tables, views, sequences, etc.? (For now I would like to create them for sequences.)
>
> What I mean is something like in Oracle, such as
>
> create alias my_sequence_alias for my_sequence;
> select nextval('my_sequence_alias');

No. What would this be used for?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-06-09 22:41:39 Re: INTERVAL SECOND limited to 59 seconds?
Previous Message Ioana Danes 2009-06-09 20:26:58 Re: Duplicate key issue in a transaction block