[GENERAL] "The index is not optimal" GiST warnings

2016-10-13 Thread James Robinson
web / mailing list archives finds little to nothing regarding "The index is not optimal. To optimize it, contact a developer, or try to use the column as the second one in the CREATE INDEX command." Should we make the effort to track down these indices / constraints and reorder the columns to put the original table's primary key fields first, then the range column last? -- James Robinson Socialserve.com by Emphasys Software

Re: [GENERAL] Way to get at parsed trigger 'WHEN' clause expression?

2016-03-25 Thread James Robinson
uot;substring"(pg_get_triggerdef(t.oid), 48), 'EXECUTE PROCEDURE'::text) + 47)::information_schema.character_data AS action_statement, ... But at least we can turn a blind eye to its internal horror. Thanks! --- James Robinson ja...@jlr-photo.com -- Sent via pgsql-g

Re: [GENERAL] Way to get at parsed trigger 'WHEN' clause expression?

2016-03-25 Thread James Robinson
HEN clause portion' for this use case (an in-house web-based schema browser which just got taught how to display triggers). Was primarily interested in seeing if there was a known way of doing this short of filthy string parsing. I'll post the soln. I end up with just for mail archives

[GENERAL] Way to get at parsed trigger 'WHEN' clause expression?

2016-03-24 Thread James Robinson
ilt in, or should we just make call to pg_catalog.pg_get_triggerdef() and parse out the WHEN clause text? Thanks! ------ James Robinson Socialserve.com by Emphasys Software -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscrip

Re: [GENERAL] 9.0.6 "cluster" transient failure ...

2012-01-30 Thread James Robinson
On Jan 28, 2012, at 3:45 AM, Tom Lane wrote: > James Robinson writes: >> ERROR: duplicate key value violates unique constraint >> "pg_toast_22608264_index" >> DETAIL: Key (chunk_id, chunk_seq)=(22354927, 0) already exists. > >> The error is

[GENERAL] 9.0.6 "cluster" transient failure ...

2012-01-25 Thread James Robinson
yields nothing). Figuring it could have been one of the temporary tables used in the transformations (at least one of which had data rows wide enough to get toasted)? James Robinson Socialserve.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to

[GENERAL] no-arg cluster and locks ...

2008-02-24 Thread James Robinson
me observed an undetected deadlock-ish issue, and the juciest aspect was that a db-wide cluster was running. Thanks! James Robinson Socialserve.com ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] 8.2.0 psql \df+ output mangled a bit relative to 8.1.4 ...

2006-12-21 Thread James Robinson
k that got anywhere... It's a psql only thing BTW, other programs will not see it. Have a nice day, -- Martijn van Oosterhout http://svana.org/ kleptog/ From each according to his ability. To each according to his ability to litigate. James Robinson Socialserve.com

[GENERAL] 8.2.0 psql \df+ output mangled a bit relative to 8.1.4 ...

2006-12-21 Thread James Robinson
else insert into housing.terse_listing (id, last_modified) values (NEW.id, now()); end if; return null; END; | James Robinson Socialserve.com ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [GENERAL] Performance/Issues with CMP and JBoss

2006-08-02 Thread James Robinson
at tech which was supposed to make things easy for you. CMP is a very leaky overcomplicated abstraction. James Robinson Socialserve.com ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscr

Re: [GENERAL] A tale of two similar databases

2006-01-17 Thread James Robinson
Have you vacuum'd and/or analyzed D2? http://www.postgresql.org/docs/8.1/static/maintenance.html http://www.postgresql.org/docs/8.1/static/sql-analyze.html James Robinson Socialserve.com ---(end of broadcast)--- TIP 3:

Re: [GENERAL] Composite types as columns used in production?

2005-04-29 Thread James Robinson
rebuilding any indices on the old type columns, then dropping the old type. Inconvenient, not insurmountable. That said -- anyone stepping up to claiming using 'em? Are these things seen as against the data normalization grain? James Robinson Socialserve.com

[GENERAL] Composite types as columns used in production?

2005-04-29 Thread James Robinson
hat they just aren't true members of the relational model, but, aside from constraint inheritance, what is known to be lacking, aside from the plethora of parenthesis they inflict? James Robinson Socialserve.com ---(end of broadcast)---

Re: [GENERAL] Performance difference between ANY and IN, also array syntax

2005-04-26 Thread James Robinson
-- okay -- eat it now for testrow in execute query loop return next testrow; end loop; return; END; $$ language plpgsql; social=# select * from dynamic_test('{2,3}'); NOTICE: query: "select * from test where id in (2, 3)" id

Re: [GENERAL] Composite type versus Domain constraints.

2005-04-13 Thread James Robinson
ving only two lines of SQL to build to educate the database about each one would be a real winner. Not to sound ungrateful -- the scalar type tricks can work, but with more SQL-level effort. James Robinson Socialserve.com ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] Composite type versus Domain constraints.

2005-04-13 Thread James Robinson
On Apr 12, 2005, at 4:48 PM, Tom Lane wrote: James Robinson <[EMAIL PROTECTED]> writes: insert into simple_table values (null, '(43)'); -- GRR works!!! It'll let any smallint in. What happened to the constraint? The composite-type input routine doesn't check any constra

[GENERAL] Composite type versus Domain constraints.

2005-04-12 Thread James Robinson
ith a separate oid for object / relational mapping. James Robinson Socialserve.com ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

[GENERAL] COPY data and referential triggers ...

2004-10-23 Thread James Robinson
rence manual page on the COPY command. James Robinson Socialserve.com ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html