Re: [BUGS] stable vs. immutable unaccent function

2013-05-05 Thread Thangalin
Hi, I wrote the unaccent_text wrapper function to achieve the following: CREATE INDEX table_name_label_unaccent_idx ON table_name USING gin (unaccent_text(label::text) COLLATE pg_catalog."default" gin_trgm_ops); I would have liked to use unaccent directly. The fact that someone wrote such

[BUGS] stable vs. immutable unaccent function

2013-05-04 Thread Thangalin
Hi, Given the following function: CREATE OR REPLACE FUNCTION unaccent_text(text) RETURNS text AS $BODY$ -- unaccent is STABLE, but the indexes must use IMMUTABLE functions. -- comment this line out when calling pg_dump. SELECT unaccent($1); -- Uncomment this line when calling pg_dump.

Re: [BUGS] pg_dump: SQL command failed

2012-05-24 Thread Thangalin
Hi, Robert. $ psql --version psql (PostgreSQL) 9.1.2 D J On Tue, May 22, 2012 at 12:55 PM, Robert Haas wrote: > On Sun, May 13, 2012 at 10:46 PM, Thangalin wrote: > > Hi, > > > > REPLICATE > > > > 0. Create a new database (superdatabase) > > 1. Creat

Re: [BUGS] pg_dump: SQL command failed

2012-05-14 Thread Thangalin
Hi, Tom. Thanks for the quick reply. anyway, for the purposes of options such as "-n".) So on reload, the > user function fails; it's referencing a function that doesn't exist > in the new database. That's not a bug. > I'm probably not understanding something: I'm not importing anything into a

Re: [BUGS] pg_dump: SQL command failed

2012-05-13 Thread Thangalin
at 7:46 PM, Thangalin wrote: > Hi, > > *REPLICATE* > > 0. Create a new database (*superdatabase*) > 1. Create a new schema (*superschema*) > 2. Add the unaccent extension to the schema: > CREATE EXTENSION unaccent; > 3. Create a wrapper for unaccent that exposes an *IMMU

[BUGS] pg_dump: SQL command failed

2012-05-13 Thread Thangalin
Hi, *REPLICATE* 0. Create a new database (*superdatabase*) 1. Create a new schema (*superschema*) 2. Add the unaccent extension to the schema: CREATE EXTENSION unaccent; 3. Create a wrapper for unaccent that exposes an *IMMUTABLE* interface (this is side issue): CREATE OR REPLACE FUNCTION supers

[BUGS] BUG #6368: Missing pg_config

2011-12-30 Thread thangalin
The following bug has been logged on the website: Bug reference: 6368 Logged by: D J Email address: thanga...@gmail.com PostgreSQL version: 9.1.2 Operating system: Kubuntu Linux 10.10 Description: Running the following command resolved the issue of a missing pg_config

[BUGS] BUG #6367: Missing pg_config

2011-12-30 Thread thangalin
The following bug has been logged on the website: Bug reference: 6367 Logged by: D J Email address: thanga...@gmail.com PostgreSQL version: 9.1.2 Operating system: Kubuntu Linux 10.10 Description: REPLICATE 1. Clean OS. 2. Use "synaptic" to install postgresql-8.4 pack