pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Piotr Findeisen <piotr.findeisen@starburstdata.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: Is _<typename> a supported way to create a column of array type?
Date: Fri, 26 Apr 2019 08:15:51 -0400
Message-ID: <e52f6e8c-4a4e-00f9-9ee7-ea89bef474fc@joeconway.com> (raw)
In-Reply-To: <CAMrFzbvjWgjUuvRCz9b1ukQrwLU3P8SG_D4vZcHF-rOyWxKO1A@mail.gmail.com>
References: <CAMrFzbt_DjD1BSLOhAUgNApu8MV3CCPmbEac9FfMxOOq6GAD0g@mail.gmail.com>
	<31659.1556226223@sss.pgh.pa.us>
	<CAMrFzbtAzyrQy0CSj8T1tCTJvFQKJ1ZYm2bJpRcFBqns4Tz5Vg@mail.gmail.com>
	<32678.1556228173@sss.pgh.pa.us>
	<CAMrFzbvjWgjUuvRCz9b1ukQrwLU3P8SG_D4vZcHF-rOyWxKO1A@mail.gmail.com>

On 4/26/19 6:50 AM, Piotr Findeisen wrote:
> Presto type system however distinguishes array(integer),
> array(array(integer))...
> (using Presto therms). And execution is (expectedly) not as flexible.

Fine point here -- Postgres does not actually have arrays-of-arrays, it
has multi-dimension arrays.

So in other words, you cannot have an array of element type _int4, but
rather you literally have an array of element type int4 with two
dimension, etc..

Joe
-- 
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (7+ messages)  latest in thread

Message-ID: <e52f6e8c-4a4e-00f9-9ee7-ea89bef474fc@joeconway.com>
Permalink:  ../e52f6e8c-4a4e-00f9-9ee7-ea89bef474fc@joeconway.com/
Also on:    postgresql.org/message-id/e52f6e8c-4a4e-00f9-9ee7-ea89bef474fc@joeconway.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 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-general@postgresql.org
  Cc: mail@joeconway.com, piotr.findeisen@starburstdata.com, tgl@sss.pgh.pa.us
  Subject: Re: Is _<typename> a supported way to create a column of array type?
  In-Reply-To: <e52f6e8c-4a4e-00f9-9ee7-ea89bef474fc@joeconway.com>
  References: <CAMrFzbt_DjD1BSLOhAUgNApu8MV3CCPmbEac9FfMxOOq6GAD0g@mail.gmail.com> <31659.1556226223@sss.pgh.pa.us> <CAMrFzbtAzyrQy0CSj8T1tCTJvFQKJ1ZYm2bJpRcFBqns4Tz5Vg@mail.gmail.com> <32678.1556228173@sss.pgh.pa.us> <CAMrFzbvjWgjUuvRCz9b1ukQrwLU3P8SG_D4vZcHF-rOyWxKO1A@mail.gmail.com> <e52f6e8c-4a4e-00f9-9ee7-ea89bef474fc@joeconway.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