pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ricardo Dias Marques <ricmarques@spamcop.net>
To: pgsql-sql@postgresql.org
Subject: CREATE OR REPLACE VIEW
Date: Tue, 21 Nov 2000 18:56:36 +0000
Message-ID: <3A1AC564.24FD6EA3@spamcop.net> (raw)

Hi all,

Is CREATE OR REPLACE VIEW available in any way, in PostgreSQL 7.0.2?

I am building a PHP/PostgreSQL application, and want to CREATE a VIEW if
it doesn't existe or REPLACE it with a new one, if it already exists. I
was hoping that I didn't have to DROP the VIEW so I don't get error
messages, and also, in my case, DROPping a view, when it doesn't already
exist is causing the PHP script to halt.

Any help is appreciated.

Ricardo Dias Marques
ricmarques@spamcop.net



view thread (2+ messages)  latest in thread

Message-ID: <3A1AC564.24FD6EA3@spamcop.net>
Permalink:  ../3A1AC564.24FD6EA3@spamcop.net/
Also on:    postgresql.org/message-id/3A1AC564.24FD6EA3@spamcop.net

 · 

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-sql@postgresql.org
  Cc: ricmarques@spamcop.net
  Subject: Re: CREATE OR REPLACE VIEW
  In-Reply-To: <3A1AC564.24FD6EA3@spamcop.net>
  References: <3A1AC564.24FD6EA3@spamcop.net>

* 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