Re: BUG #8056: postgres forgets hstore over time

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8056: postgres forgets hstore over time
Date: 2013-04-10 19:32:24
Message-ID: 5165BE48.6040309@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Yunong Xiao 2013-04-11 16:52:07 Re: BUG #7969: Postgres Recovery Fatal With: "incorrect local pin count:2"
Previous Message E E 2013-04-10 18:01:16 Re: BUG #8056: postgres forgets hstore over time