pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Some Questions
Date: Thu, 12 Jun 2003 05:18:35 -0700 (PDT)
Message-ID: <20030612121835.66802.qmail@web80507.mail.yahoo.com> (raw)

Hi:

    I would like to ask the following questions:
a) Are foreign key constraint triggers guaranteed to
execute first before any ordinary "BEFORE
INSERT/UPDATE/DELETE" trigger is executed? (This is
assuming that the foreign keys are declared as "NOT
DEFERRABLE")

b) Is "varchar" (without upper limit) the same as
"text"? 
   I do notice that when I create a view :
   create view v_test as (select 'test'::varchar(10)
union select 'test1'::varchar(10));

   a "\d v_test" on the psql prompt would always say
the only only column the view is of type "character
varying". Does a union of a varchar(n) column and a
another varchar(n) column would automatically cast it
to "character varying" (w/o upper limit) even if the
upper limit of the 2 varchar columns are the same?

thanks in advance,
ludwig lim





__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com



view thread (8+ messages)  latest in thread

Message-ID: <20030612121835.66802.qmail@web80507.mail.yahoo.com>
Permalink:  ../20030612121835.66802.qmail@web80507.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030612121835.66802.qmail@web80507.mail.yahoo.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lud_nowhere_man@yahoo.com
  Subject: Re: Some Questions
  In-Reply-To: <20030612121835.66802.qmail@web80507.mail.yahoo.com>

* 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