pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John D. Burger <john@mitre.org>
To: Postgres General <pgsql-general@postgresql.org>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: [GENERAL] Array assignment behavior (was Re: Stored procedure array limits)
Date: Fri, 29 Sep 2006 12:40:48 -0400
Message-ID: <CA0C32E2-2371-4297-83AD-2ED9A14E0513@mitre.org> (raw)
In-Reply-To: <595CA7DC-7EC2-47B6-A894-DCD0ED3825F3@pandora.com>
References: <451C48AB.6090508@pnlassociates.com>
	<9461.1159502232@sss.pgh.pa.us>
	<451D34FD.3050709@pnlassociates.com>
	<451D37C8.8060502@pnlassociates.com>
	<16926.1159546451@sss.pgh.pa.us>
	<595CA7DC-7EC2-47B6-A894-DCD0ED3825F3@pandora.com>

>> As of 8.2 we could allow assignment to
>> arbitrary positions by filling the intermediate positions with nulls.
>> The code hasn't actually been changed to allow that, but it's  
>> something
>> we could consider doing now.
>
> At first blush, this strikes me as a bit too magical/implicit. Are  
> there other languages where sequences behave similarly?

 > perl -e '@A = (1, 2, 3); print "@A\n"; $A[10] = 10; print "@A\n";'
1 2 3
1 2 3        10

- John D. Burger
   MITRE




view thread (7+ messages)  latest in thread

Message-ID: <CA0C32E2-2371-4297-83AD-2ED9A14E0513@mitre.org>
Permalink:  ../CA0C32E2-2371-4297-83AD-2ED9A14E0513@mitre.org/
Also on:    postgresql.org/message-id/CA0C32E2-2371-4297-83AD-2ED9A14E0513@mitre.org

 · 

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-admin@postgresql.org
  Cc: john@mitre.org, pgsql-general@postgresql.org, pgsql-hackers@postgresql.org
  Subject: Re: [GENERAL] Array assignment behavior (was Re: Stored procedure array limits)
  In-Reply-To: <CA0C32E2-2371-4297-83AD-2ED9A14E0513@mitre.org>
  References: <451C48AB.6090508@pnlassociates.com> <9461.1159502232@sss.pgh.pa.us> <451D34FD.3050709@pnlassociates.com> <451D37C8.8060502@pnlassociates.com> <16926.1159546451@sss.pgh.pa.us> <595CA7DC-7EC2-47B6-A894-DCD0ED3825F3@pandora.com> <CA0C32E2-2371-4297-83AD-2ED9A14E0513@mitre.org>

* 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