pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Natasa Bulatovic <n.bulatovic@zim.mpg.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Any limitation in size for return result from SELECT?
Date: Sat, 01 Mar 2003 19:41:51 -0800
Message-ID: <3E617D7F.1010600@joeconway.com> (raw)
In-Reply-To: <002e01c2dcd9$b887b2b0$e302b782@ipp.mpg.de>
References: <002e01c2dcd9$b887b2b0$e302b782@ipp.mpg.de>

Natasa Bulatovic wrote:
> select col1||col2||col3||.....||col100 from table
> 
> However, when the number of concatenated columns is bigger than 22 no
> result is given back (tested in psql, as well as from pgplsql)....
> 
> Most of these columns for the test data are NULL...Datatypes of

Based on your description, I'd guess column 23 is the first null one. If 
you concatenate null with any value, you'll get a null result:

regression=# select 'hello';
  ?column?
----------
  hello
(1 row)

regression=# select 'hello' || null;
  ?column?
----------

(1 row)

regression=# select ('hello' || null) is null;
  ?column?
----------
  t
(1 row)

HTH,

Joe




view thread (4+ messages)  latest in thread

Message-ID: <3E617D7F.1010600@joeconway.com>
Permalink:  ../3E617D7F.1010600@joeconway.com/
Also on:    postgresql.org/message-id/3E617D7F.1010600@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mail@joeconway.com, n.bulatovic@zim.mpg.de
  Subject: Re: Any limitation in size for return result from SELECT?
  In-Reply-To: <3E617D7F.1010600@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