Re: BUG #8056: postgres forgets hstore over time - Mailing list pgsql-bugs

From John R Pierce
Subject Re: BUG #8056: postgres forgets hstore over time
Date
Msg-id 5165BE48.6040309@hogranch.com
Whole thread Raw
In response to Re: BUG #8056: postgres forgets hstore over time  (E E <knowzerox@yahoo.com>)
List pgsql-bugs
On 4/10/2013 11:01 AM, E E wrote:
>
> CREATE OR REPLACE FUNCTION accounts.myhstore_merge(myh hstore, mytext
> text[])
>   RETURNS hstore AS
> $BODY$BEGIN
> SET search_path TO public;
> RETURN myh || hstore(mytext);
>
> END;$BODY$
>   LANGUAGE plpgsql VOLATILE
>   COST 100;


public.hstore(...)    would have been much simpler than changing the
search_path, which is persistent to the connection and likely will
backfire if your apps are changing it to something else.



--
john r pierce                                      37N 122W
somewhere on the middle of the left coast

pgsql-bugs by date:

Previous
From: E E
Date:
Subject: Re: BUG #8056: postgres forgets hstore over time
Next
From: "Yunong Xiao"
Date:
Subject: Re: BUG #7969: Postgres Recovery Fatal With: "incorrect local pin count:2"