pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add casts from jsonb
4+ messages / 2 participants
[nested] [flat]

* pgsql: Add casts from jsonb
@ 2018-03-29 13:35 Teodor Sigaev <teodor@sigaev.ru>
  2018-03-29 14:57 ` Re: pgsql: Add casts from jsonb Teodor Sigaev <teodor@sigaev.ru>
  0 siblings, 1 reply; 4+ messages in thread

From: Teodor Sigaev @ 2018-03-29 13:35 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add casts from jsonb

Add explicit cast from scalar jsonb to all numeric and bool types. It would be
better to have cast from scalar jsonb to text too but there is already a cast
from jsonb to text as just text representation of json. There is no way to have
two different casts for the same type's pair.

Bump catalog version

Author: Anastasia Lubennikova with editorization by Nikita Glukhov and me
Review by: Aleksander Alekseev, Nikita Glukhov, Darafei Praliaskouski
Discussion: https://www.postgresql.org/message-id/flat/0154d35a-24ae-f063-5273-9ffcdf1c7f2e@postgrespro.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c0cbe00fee6d0a5e0ec72c6d68a035e674edc4cc

Modified Files
--------------
src/backend/utils/adt/jsonb.c       | 175 ++++++++++++++++++++++++++++++++++++
src/include/catalog/catversion.h    |   2 +-
src/include/catalog/pg_cast.h       |   9 ++
src/include/catalog/pg_proc.h       |  16 ++++
src/test/regress/expected/jsonb.out | 105 ++++++++++++++++++++++
src/test/regress/sql/jsonb.sql      |  22 +++++
6 files changed, 328 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Add casts from jsonb
  2018-03-29 13:35 pgsql: Add casts from jsonb Teodor Sigaev <teodor@sigaev.ru>
@ 2018-03-29 14:57 ` Teodor Sigaev <teodor@sigaev.ru>
  2018-03-29 16:15   ` Re: pgsql: Add casts from jsonb Teodor Sigaev <teodor@sigaev.ru>
  0 siblings, 1 reply; 4+ messages in thread

From: Teodor Sigaev @ 2018-03-29 14:57 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Seems, I broke Windows again, it doesn't like this patch, see
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=whelk&dt=2018-03-29%2013%3A41%3A13

But I don't understand how it could be...

Teodor Sigaev wrote:
> Add casts from jsonb
> 
> Add explicit cast from scalar jsonb to all numeric and bool types. It would be
> better to have cast from scalar jsonb to text too but there is already a cast
> from jsonb to text as just text representation of json. There is no way to have
> two different casts for the same type's pair.
> 
> Bump catalog version
> 
> Author: Anastasia Lubennikova with editorization by Nikita Glukhov and me
> Review by: Aleksander Alekseev, Nikita Glukhov, Darafei Praliaskouski
> Discussion: https://www.postgresql.org/message-id/flat/0154d35a-24ae-f063-5273-9ffcdf1c7f2e@postgrespro.ru
> 
> Branch
> ------
> master
> 
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/c0cbe00fee6d0a5e0ec72c6d68a035e674edc4cc
> 
> Modified Files
> --------------
> src/backend/utils/adt/jsonb.c       | 175 ++++++++++++++++++++++++++++++++++++
> src/include/catalog/catversion.h    |   2 +-
> src/include/catalog/pg_cast.h       |   9 ++
> src/include/catalog/pg_proc.h       |  16 ++++
> src/test/regress/expected/jsonb.out | 105 ++++++++++++++++++++++
> src/test/regress/sql/jsonb.sql      |  22 +++++
> 6 files changed, 328 insertions(+), 1 deletion(-)
> 

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Add casts from jsonb
  2018-03-29 13:35 pgsql: Add casts from jsonb Teodor Sigaev <teodor@sigaev.ru>
  2018-03-29 14:57 ` Re: pgsql: Add casts from jsonb Teodor Sigaev <teodor@sigaev.ru>
@ 2018-03-29 16:15   ` Teodor Sigaev <teodor@sigaev.ru>
  2018-03-29 16:55     ` Re: pgsql: Add casts from jsonb Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Teodor Sigaev @ 2018-03-29 16:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Hm, it was a random failure?

Teodor Sigaev wrote:
> Seems, I broke Windows again, it doesn't like this patch, see
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=whelk&dt=2018-03-29%2013%3A41%3A13 
> 
> 
> But I don't understand how it could be...
> 
> Teodor Sigaev wrote:
>> Add casts from jsonb
>>
>> Add explicit cast from scalar jsonb to all numeric and bool types. It would be
>> better to have cast from scalar jsonb to text too but there is already a cast
>> from jsonb to text as just text representation of json. There is no way to have
>> two different casts for the same type's pair.
>>
>> Bump catalog version
>>
>> Author: Anastasia Lubennikova with editorization by Nikita Glukhov and me
>> Review by: Aleksander Alekseev, Nikita Glukhov, Darafei Praliaskouski
>> Discussion: 
>> https://www.postgresql.org/message-id/flat/0154d35a-24ae-f063-5273-9ffcdf1c7f2e@postgrespro.ru 
>>
>>
>> Branch
>> ------
>> master
>>
>> Details
>> -------
>> https://git.postgresql.org/pg/commitdiff/c0cbe00fee6d0a5e0ec72c6d68a035e674edc4cc
>>
>> Modified Files
>> --------------
>> src/backend/utils/adt/jsonb.c       | 175 ++++++++++++++++++++++++++++++++++++
>> src/include/catalog/catversion.h    |   2 +-
>> src/include/catalog/pg_cast.h       |   9 ++
>> src/include/catalog/pg_proc.h       |  16 ++++
>> src/test/regress/expected/jsonb.out | 105 ++++++++++++++++++++++
>> src/test/regress/sql/jsonb.sql      |  22 +++++
>> 6 files changed, 328 insertions(+), 1 deletion(-)
>>
> 

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Add casts from jsonb
  2018-03-29 13:35 pgsql: Add casts from jsonb Teodor Sigaev <teodor@sigaev.ru>
  2018-03-29 14:57 ` Re: pgsql: Add casts from jsonb Teodor Sigaev <teodor@sigaev.ru>
  2018-03-29 16:15   ` Re: pgsql: Add casts from jsonb Teodor Sigaev <teodor@sigaev.ru>
@ 2018-03-29 16:55     ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2018-03-29 16:55 UTC (permalink / raw)
  To: Teodor Sigaev <teodor@sigaev.ru>; +Cc: pgsql-committers@lists.postgresql.org; chris@chrullrich.net

Teodor Sigaev <teodor@sigaev.ru> writes:
> Hm, it was a random failure?

Yeah, whelk seems to be a bit flaky lately.  Not very clear why,
but it's shown several failures that other BF members didn't.

https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=whelk&br=HEAD

Curiously, it's only HEAD that's flapping; the back branches are fine.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2018-03-29 16:55 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-03-29 13:35 pgsql: Add casts from jsonb Teodor Sigaev <teodor@sigaev.ru>
2018-03-29 14:57 ` Teodor Sigaev <teodor@sigaev.ru>
2018-03-29 16:15   ` Teodor Sigaev <teodor@sigaev.ru>
2018-03-29 16:55     ` Tom Lane <tgl@sss.pgh.pa.us>

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