On Wed, Jun 29, 2005 at 01:20:17PM -0400, Douglas McNaught wrote:
> David Fetter <david(at)fetter(dot)org> writes:
> > I'm all in favor of having associative arrays as a 1st-class data
> > type in PostgreSQL. How much harder would it be to make these
> > generally available vs. tied to one particular language?
> We already have them--they're called "tables with primary keys". :)
> What's the use-case for these things? Just imitating Oracle?
It would make named function parameters *very* easy to do. :)
a => 2,
b => 5,
c => current_timestamp::timestamp with time zone
would be equivalent to
c => current_timestamp::timestamp with time zone,
a => 2,
b => 5
and both would Do The Right Thing. It also opens the door to default
parameters for those who want them.
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778
Remember to vote!
In response to
pgsql-hackers by date
|Next:||From: Simon Riggs||Date: 2005-06-29 21:38:28|
|Subject: Re: commit_delay, siblings|
|Previous:||From: Tom Lane||Date: 2005-06-29 20:16:47|
|Subject: Re: Open items |