Re: [GENERAL] insert - on conflict question

2017-02-01 Thread Beena Emerson
7;) > title, > author_countFROM > q > > ON CONFLICT (ut) > DO UPDATESET > title = title, > author_count = author_count; > > > In the ON CONFLICT... SET we need to use EXCLUDED keyword. ON CONFLICT (ut) DO UPDATE SET title = EXCLUDED.title, author_count = EXCLUDED.author_count; -- Thank you, Beena Emerson Have a Great Day!

Re: [GENERAL] Inconsistent bgworker behaviour

2015-01-08 Thread Beena Emerson
Hello, Thank you for your reply. > We could probably use a WaitForBackgroundWorkerTermination(...) to > correspond to WaitForBackgroundWorkerStartup(...) . > > I think you'll probably want to GetBackgroundWorkerPid(...) and examine > the returned BgwHandleStatus to see if it's BGWH_STOPPED . If n

[GENERAL] Inconsistent bgworker behaviour

2015-01-06 Thread Beena Emerson
Hello, I have been working on a module which launches background workers for a list of databases provided by a configuration parameter(say m_databases). This configuration parameter can be edited and reloaded. It has a launcher which manages all the workers launched by the module. The worker.bgw_

Re: [GENERAL] Full text search regression tests

2013-09-17 Thread Beena Emerson
I am sorry this mail was not meant for this list.

[GENERAL] Full text search regression tests

2013-09-17 Thread Beena Emerson
Hello All, Attached patch adds regression tests to check the full-text search capability of pg_bigm. Regards, Beena Emerson bigm-fulltext-search-regression.patch Description: Binary data -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] plpgsql code doen't work

2013-09-10 Thread Beena Emerson
Hello, Try changing the variable left to something other like left_val. It will work. Maybe the problem is because LEFT is a keyword. Beena Emerson

Re: [GENERAL] devide and summarize sql result (all)

2013-08-15 Thread Beena Emerson
th | 85-90 | 2 smith | 95-100 | 2 (5 rows) -- Beena Emerson

Re: [GENERAL] Fastest Index/Algorithm to find similar sentences

2013-07-31 Thread Beena Emerson
I am sorry, I just re-read your mail and realized you have already tried with pg_trgm. On Wed, Jul 31, 2013 at 7:23 PM, Beena Emerson wrote: > On Sat, Jul 27, 2013 at 10:34 PM, Janek Sendrowski wrote: > >> Hi Sergey Konoplev, >> >> If I'm searching for a se

Re: [GENERAL] Fastest Index/Algorithm to find similar sentences

2013-07-31 Thread Beena Emerson
#x27;) AS sml FROM test WHERE col % 'The tiger is the largest cat species' ORDER BY sml DESC, col; col | sml ----------+- The tiger is the largest cat species | 1 (1 row) When you set a higher limit, you get more exact matches. -- Beena Emerson

Re: [GENERAL] Fwd: Trigger on VIEW not firing

2013-07-30 Thread Beena Emerson
INSERT INTO alarm VALUES(NEW.type, 0,'SPEED',now(),NULL,NULL,''); END IF; END IF; RETURN new; END; $alarm_tg$ LANGUAGE plpgsql; And write the trigger on the car table. -- Beena Emerson

Re: [GENERAL] Fwd: Trigger on VIEW not firing

2013-07-30 Thread Beena Emerson
0 | SPEED | 2013-07-30 18:08:01.006979 | | | (1 row) =# SELECT * FROM car; id | type | speed +--+--- (0 rows) =# SELECT * FROM speedv; id | type | speed +--+--- (0 rows) -- * * Beena Emerson

Re: [GENERAL] Fwd: Trigger on VIEW not firing

2013-07-30 Thread Beena Emerson
_tg INSTEAD OF INSERT OR DELETE OR UPDATE ON worksub > FOR EACH ROW EXECUTE PROCEDURE wrk_view(); > > nothing appen when I insert row in work table. > > Someone can help me? > > -- * * Beena Emerson

[GENERAL] excute function before DROP EXTENSION

2013-06-07 Thread Beena Emerson
this in 9.1 onwards using DROP EXTENSION. -- Beena Emerson