Re: [PERFORM] Insertions slower than Updates?

2012-02-20 Thread Steve Horn
don't modify indexed columns. > > -Kevin > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance > -- Steve Horn http://www.stevehorn.cc st...@stevehorn.cc http://twitter.com/stevehorn 740-503-2300

[PERFORM] Query slow as function

2012-02-19 Thread Steve Horn
Hello all! I have a very simple query that I am trying to wrap into a function: SELECT gs.geo_shape_id AS gid, gs.geocode FROM geo_shapes gs WHERE gs.geocode = 'xyz' AND geo_type = 1 GROUP BY gs.geography, gs.geo_shape_id, gs.geocode; This query runs in about 10 milliseconds. Now my goal is to

Re: [PERFORM] Query slow as Function

2012-02-18 Thread Steve Horn
nt imposed > in the written-out query. There are lots of other possibilities > though. It would be hard to say much without a self-contained example > to try. > >regards, tom lane > -- Steve Horn http://www.stevehorn.cc st...@stevehorn.cc http://twitter.com/stevehorn 740-503-2300

[PERFORM] Query slow as Function

2012-02-18 Thread Steve Horn
Hello all! I have a very simple query that I am trying to wrap into a function: SELECT gs.geo_shape_id AS gid, gs.geocode FROM geo_shapes gs WHERE gs.geocode = 'xyz' AND geo_type = 1 GROUP BY gs.geography, gs.geo_shape_id, gs.geocode; This query runs in about 10 milliseconds. Now my goal is to