| From: | "Pollard, Mike" <mpollard(at)cincom(dot)com> |
|---|---|
| To: | <pgsql-hackers(at)postgreSQL(dot)org> |
| Subject: | Re: Supporting NULL elements in arrays |
| Date: | 2005-11-08 15:23:50 |
| Message-ID: | 6418CC03D0FB1943A464E1FEFB3ED46B01B22092@im01.cincom.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> and so the most straightforward thing to do is define an empty element
> as meaning a NULL. But this might be objected to on a couple of
grounds:
Can you use a default to allow the user to specify the default value for
an element? May look a little strange, though, if the user specifies a
default array and a default element value, like:
CREATE TABLE ARR(ARR CHAR(30)[] DEFAULT '{"hello", "good bye"}' NULL);
So the first default is the array default; specify NULL if you don't
want one but do want an array element default; the second, if present,
is the array element default. I'm not sure I like this or not, but it's
an idea.
Mike Pollard
SUPRA Server SQL Engineering and Support
Cincom Systems, Inc
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Harald Fuchs | 2005-11-08 15:41:24 | Re: Supporting NULL elements in arrays |
| Previous Message | Robert Creager | 2005-11-08 15:21:07 | Re: [Pgsphere-dev] Re: SIGSEGV taken on 8.1 during |