From: Emi Lu <emilu@encs.concordia.ca>
To: pgsql-sql@postgresql.org
Subject: how to get the size of array?
Date: Tue, 14 Mar 2006 15:48:55 -0500
Message-ID: <44172C37.90804@encs.concordia.ca> (raw)
Hello,
Is there a way that I can get the size of one array ?
For example, create table test (id varchar[]);
insert into test values('{}');
insert into test values('{1, 2, 3}');
I am looking for something like :
select sizeOf(id) as size from test;
so that I can get results like:
size
-------
0
3
Thanks a lot,
Ying
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: emilu@encs.concordia.ca
Subject: Re: how to get the size of array?
In-Reply-To: <44172C37.90804@encs.concordia.ca>
* 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