Some Questions

From: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>
To: PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Some Questions
Date: 2003-06-12 12:18:35
Message-ID: 20030612121835.66802.qmail@web80507.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Pradier 2003-06-12 12:21:33 Re: How to make a IN without a table... ?
Previous Message Christoph Haller 2003-06-12 12:10:06 Re: How to make a IN without a table... ?