From: E E <knowzerox@yahoo.com>
To: Dickson S. Guedes <listas@guedesoft.net>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8056: postgres forgets hstore over time
Date: Wed, 10 Apr 2013 11:01:16 -0700 (PDT)
Message-ID: <1365616876.67955.YahooMailNeo@web140203.mail.bf1.yahoo.com> (raw)
In-Reply-To: <CAHHcreqv+Nu9+71G1eRb8JODCqR12w1sM9QA-wRuELeRC6O-cA@mail.gmail.com>
References: <E1UPkMS-0008N4-Pr@wrigleys.postgresql.org>
<CAHHcreqv+Nu9+71G1eRb8JODCqR12w1sM9QA-wRuELeRC6O-cA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
You mean by running current_schemas(true) on that session?
So far I have remade the hstore functions into this and it seems to be working for now: (But this happens randomly after time so it might take a day or 2 to be sure this addresses the issue)
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;
________________________________
From: Dickson S. Guedes <listas@guedesoft.net>
To: knowzerox@yahoo.com
Cc: pgsql-bugs@postgresql.org
Sent: Wednesday, April 10, 2013 7:19 AM
Subject: Re: [BUGS] BUG #8056: postgres forgets hstore over time
2013/4/9 <knowzerox@yahoo.com>:
> The following bug has been logged on the website:
>
> Bug reference: 8056
> Logged by: Eugene
> Email address: knowzerox@yahoo.com
> PostgreSQL version: 9.2.1
Please update your Postgres to 9.2.4.
> I have hstore installed on my server and it works fine. But sometimes
> postgres would give me errors such as:
>
> type "hstore" does not exist
Did you check search_path? Compare search_path between sessions that
are getting error and see if hstore type/functions are reached through
it.
[]s
--
Dickson S. Guedes
mail/xmpp: guedes@guedesoft.net - skype: guediz
http://github.com/guedes - http://guedesoft.nethttp://www.postgresql.org.br
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: knowzerox@yahoo.com, listas@guedesoft.net
Subject: Re: BUG #8056: postgres forgets hstore over time
In-Reply-To: <1365616876.67955.YahooMailNeo@web140203.mail.bf1.yahoo.com>
References: <E1UPkMS-0008N4-Pr@wrigleys.postgresql.org> <CAHHcreqv+Nu9+71G1eRb8JODCqR12w1sM9QA-wRuELeRC6O-cA@mail.gmail.com> <1365616876.67955.YahooMailNeo@web140203.mail.bf1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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