PG 12 hstore creation cast issue

From: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: PG 12 hstore creation cast issue
Date: 2019-10-30 16:35:38
Message-ID: CAOC+FBW30umnGfRkc8BD-tr-KrPZFPAd-zr19AdSrRTKCv67Pw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

We have this kind of code that worked in 9.6:

select hstore(array['foo'], array[1.0::numeric]);

But now yields:

ERROR: function hstore(text[], numeric[]) does not exist
LINE 1: select hstore(array['foo'], array[1.0::numeric]);
^
HINT: No function matches the given name and argument types. You might
need to add explicit type casts.

Is there a way to create hstores with numeric types as data? Does
everything need to be cast as text?

--
Wells Oliver
wells(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2019-10-30 17:55:52 Re: PG 12 hstore creation cast issue
Previous Message Rui DeSousa 2019-10-30 15:29:55 Re: How to know transaction count in hour basic