pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Medi Montaseri <montaseri@gmail.com>
Cc: s.borse@direction.biz
Cc: pgsql-admin@postgresql.org
Subject: Re: synonym
Date: Sun, 16 Dec 2007 21:10:30 -0500 (EST)
Message-ID: <200712170210.lBH2AUJ11224@momjian.us> (raw)
In-Reply-To: <8078a1730712132350n4ebc2cd3n5824387ad208cc85@mail.gmail.com>

Medi Montaseri wrote:
> PostgreSQL does not support SYNOSYM or ALIAS. Synonym is a non SQL 2003
> feature implemented by Microsoft SQL 2005 (I think). While it does provide
> an interesting abstraction, but due to lack of relational integrity, it can
> be considered a risk.
> 
> That is, you can create a synonym, advertise it to you programmers, the code
> is written around it, including stored procedures, then one day the backend
> of this synonym (or link or pointer) is changed/deleted/etc leading to a run
> time error. I don't even think a prepare would catch that.
> 
> It is the same trap as the symbolic links in unix and null pointers in
> C/C++.

It is on the TODO:

* Add support for public SYNONYMs

  http://archives.postgresql.org/pgsql-hackers/2006-03/msg00519.php

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +



view thread (3+ messages)

Message-ID: <200712170210.lBH2AUJ11224@momjian.us>
Permalink:  ../200712170210.lBH2AUJ11224@momjian.us/
Also on:    postgresql.org/message-id/200712170210.lBH2AUJ11224@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruce@momjian.us, montaseri@gmail.com, s.borse@direction.biz
  Subject: Re: synonym
  In-Reply-To: <200712170210.lBH2AUJ11224@momjian.us>
  References: <8078a1730712132350n4ebc2cd3n5824387ad208cc85@mail.gmail.com> <200712170210.lBH2AUJ11224@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox