From: | Raphael Bauduin <rblists(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: problem with partitioned table and indexed json field |
Date: | 2013-11-07 15:41:15 |
Message-ID: | CAONrwUEvOcajRCTA8ypB2XSQPfTub50rekSPZOt9D9E4ZAcuUw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
The query is also problematic here, because it returns the full json, and
not only the data I selected in the json.
Below, it should return only '_id', and not the whole json stored in event:
test3=> select max(event->>'_id') from events where event is not null;
max
------------------------------------------------
{"_id":"5f93c3a044650105b5074c9a","type":"t2"}
Thanks
raph
On Thu, Nov 7, 2013 at 4:32 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Raphael Bauduin <rblists(at)gmail(dot)com> writes:
> > I have narrowed it a bit. It happens when I create said index on an empty
> > field. Here's the scenario to reproduce it:
>
> Thanks, I've reproduced the problem here. The query still seems to run OK,
> it's just EXPLAIN that's falling over --- do you see the same?
>
> regards, tom lane
>
--
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2013-11-07 15:51:46 | Re: problem with partitioned table and indexed json field |
Previous Message | Tom Lane | 2013-11-07 15:32:15 | Re: problem with partitioned table and indexed json field |