Commit graph

10 commits

Author SHA1 Message Date
Tom Hughes
17ce58df35 Update postgres connection adaptor patches 2014-07-04 19:24:25 +01:00
Tom Hughes
de9d26c7df Drop redundant monkey patches 2013-12-08 22:49:31 +00:00
Tom Hughes
7d993febee Avoid "unknown OID" warnings from Postgres driver 2013-09-23 11:41:35 +01:00
Tom Hughes
36c220ca2b Monkey patch PostgreSQLAdapter to make enums work 2013-09-21 11:35:45 +01:00
Tom Hughes
1171bd3d8d Spell adapter correctly 2011-04-03 18:22:22 +01:00
Tom Hughes
a9e8f14e6d Monkey patch postgres adapter for postgres 9 support 2011-04-03 17:39:06 +01:00
Tom Hughes
c38de8027f Correct name of ActiveRecord 2010-06-15 17:12:55 +01:00
Tom Hughes
8af14faa49 Make database offline mode work 2010-06-15 10:07:39 +01:00
Tom Hughes
f980e7e4a6 Completely replace rails' version of pk_and_sequence_for
Falling back to the rails code for pk_and_sequence_for doesn't work
because we still wind up retrying the slow version of the query for
tables with no primary key. So just replace it instead.
2010-06-14 13:00:49 +01:00
Tom Hughes
a0af70cfb4 Monkey patch rails to make system table query efficient
Rails tries to query the system tables to find the primary key
and it's controlling sequence, but it doesn't specify that it is
looking for objects of class "pg_class" so the pg_depend table
has to be sequentially scanned instead of being accessed using
the index.

Tests on the production database show that the time taken for
this query drops from 3.5s to 15ms if the index is used.
2010-06-14 12:43:39 +01:00