pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Alexander Farber <alexander.farber@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: jsonb_array_length: ERROR: 22023: cannot get array length of a scalar
Date: Fri, 2 Mar 2018 09:54:33 -0800
Message-ID: <100e4ceb-a799-3e63-53d6-4c497dfb9978@aklaver.com> (raw)
In-Reply-To: <CAADeyWi25Ts_3q8d62CAHvBW8TdsROe-jOVQGSDPB-8qcUXF7g@mail.gmail.com>
References: <CAADeyWhfBuFiWz0Au0J2XyU5ZTDCBionqMGHqL657xseWq913g@mail.gmail.com>
	<0325b36d-f990-deb9-3086-0fb626c95e14@aklaver.com>
	<CAADeyWhx0B_z4at-X6sMqz+m6sr28U4kaxmKFcqphYYV7UuAuw@mail.gmail.com>
	<39bf9413-1465-9880-24e0-ee8d1c84e8a0@aklaver.com>
	<CAADeyWi25Ts_3q8d62CAHvBW8TdsROe-jOVQGSDPB-8qcUXF7g@mail.gmail.com>

On 03/02/2018 06:42 AM, Alexander Farber wrote:
> Hi Adrian, I 100% agree that nobody except me should debug my huge 
> stored function, but if you look at my PostgreSQL 10.3 log -
> 

Another thought, in :

2018-03-02 15:30:33.646 CET [16693] LOG:  duration: 0.058 ms  bind 
<unnamed>: SELECT out_uid  AS uid,  out_fcm  AS fcm,  out_apns AS apns, 
out_adm  AS adm,  out_body AS body  FROM words_play_game($1::int, 
$2::int, $3::jsonb)

where is $3::jsonb coming from?


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (18+ messages)  latest in thread

Message-ID: <100e4ceb-a799-3e63-53d6-4c497dfb9978@aklaver.com>
Permalink:  ../100e4ceb-a799-3e63-53d6-4c497dfb9978@aklaver.com/
Also on:    postgresql.org/message-id/100e4ceb-a799-3e63-53d6-4c497dfb9978@aklaver.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: adrian.klaver@aklaver.com, alexander.farber@gmail.com
  Subject: Re: jsonb_array_length: ERROR: 22023: cannot get array length of a scalar
  In-Reply-To: <100e4ceb-a799-3e63-53d6-4c497dfb9978@aklaver.com>
  References: <CAADeyWhfBuFiWz0Au0J2XyU5ZTDCBionqMGHqL657xseWq913g@mail.gmail.com> <0325b36d-f990-deb9-3086-0fb626c95e14@aklaver.com> <CAADeyWhx0B_z4at-X6sMqz+m6sr28U4kaxmKFcqphYYV7UuAuw@mail.gmail.com> <39bf9413-1465-9880-24e0-ee8d1c84e8a0@aklaver.com> <CAADeyWi25Ts_3q8d62CAHvBW8TdsROe-jOVQGSDPB-8qcUXF7g@mail.gmail.com> <100e4ceb-a799-3e63-53d6-4c497dfb9978@aklaver.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