aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Also support writing the hstore back to the databaseJoel2012-02-081-0/+5
| | |
| * | Hstore values are all stringsJoel2012-02-081-1/+1
| | |
| * | string_to_hstore / hstore_to_string, serializingJoel2012-02-081-9/+18
| | |
| * | Additional hstore tests, supporting null values, better compliance with ↵Joel2012-02-081-21/+17
| | | | | | | | | | | | postgres docs
| * | add hstore to postgres native types and defaultsJoel2012-02-081-1/+5
| | |
* | | Merge branch 'master' into instance_readerAaron Patterson2012-02-101-1/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Fix GH #4720. Routing problem with nested namespace and already camelized controller option. make Range#overlaps? accept Range of Time improved test case for partial indices Made schema dumper recognize partial indices' where statements Added where option to add_index to support postgresql partial indices
| * | | Made schema dumper recognize partial indices' where statementsMarcelo Silveira2012-02-091-1/+2
| | | |
| * | | Added where option to add_index to support postgresql partial indicesMarcelo Silveira2012-02-091-0/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `add_index` method now supports a `where` option that receives a string with the partial index criteria. add_index(:accounts, :code, :where => "active") Generates CREATE INDEX index_accounts_on_code ON accounts(code) WHERE active
* | | fixing indentation, moving class methods togetherAaron Patterson2012-02-091-124/+124
| | |
* | | only unescape bytea after it has been read from the databaseAaron Patterson2012-02-071-6/+0
| | |
* | | pgcolumn knows how to typecast binary columnsAaron Patterson2012-02-071-0/+6
| | |
* | | columns are lazily typecast, so no more calls to `result_as_array`Aaron Patterson2012-02-071-1/+1
| | |
* | | taking column width in to account when fetching decimal fieldsAaron Patterson2012-02-071-1/+2
| | |
* | | many of the OIDs mapped and implementedAaron Patterson2012-02-071-1/+18
|/ /
* | prevents the database.yml template option from being passed to PGConnSean Kirby2012-02-061-1/+1
| |
* | Remove useless argument in #columns.Sebastian Martinez2012-02-021-1/+1
| |
* | use the class method to (un)escape binary valuesAaron Patterson2012-02-011-2/+2
| |
* | made the result set object act more like an arrayAaron Patterson2012-01-311-1/+1
| |
* | avoid useless is_a checksAaron Patterson2012-01-191-8/+8
| |
* | delete reaping frequency from the db configAaron Patterson2012-01-051-4/+6
| |
* | Postgresql: restore previous behaviour regarding to nil values in connection ↵Lars Kanis2012-01-051-0/+1
| | | | | | | | specification Hash
* | Postgresql: Allow setting of any libpq connection parametersLars Kanis2012-01-031-17/+23
| |
* | Support establishing connection on ActiveRecord::Model.Jon Leighton2011-12-281-1/+1
| | | | | | | | | | This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base.
* | I herd you like modules.Jon Leighton2011-12-241-3/+3
| |
* | do not compile regexp on every callAaron Patterson2011-12-201-16/+14
| |
* | hstores can cycleAaron Patterson2011-12-201-4/+31
| |
* | can create hstore records via AR APIAaron Patterson2011-12-201-5/+9
| |
* | multiple key / values workAaron Patterson2011-12-201-1/+4
| |
* | PostgreSQL hstore types are automatically deserialized from the database.Aaron Patterson2011-12-201-0/+4
| |
* | pg columns should understand the hstore typeAaron Patterson2011-12-201-47/+53
| |
* | implements automatic EXPLAIN logging for slow queriesXavier Noria2011-12-021-2/+7
| |
* | Revert "Use any instead of length"José Valim2011-11-281-1/+1
| | | | | | | | This reverts commit 1756629835d39f60ef4c96aff81ac503c71b98b7.
* | Use any instead of lengthRahul P. Chaudhari2011-11-271-1/+1
|/
* removing deprecated methodsAaron Patterson2011-11-191-4/+0
|
* adding visitors to the respective adaptersAaron Patterson2011-11-191-0/+1
|
* Merge pull request #3521 from ↵Aaron Patterson2011-11-061-2/+1
| | | | | | nulogy/fix_postgres_adapter_to_handle_spaces_between_schemas Fix postgres adapter to handle spaces between schemas
* implements AR::Relation#explainXavier Noria2011-11-051-1/+43
| | | | | | | | | | | | | | | | | | | This is a first implementation, EXPLAIN is highly dependent on the database and I have made some compromises. On one hand, the method allows you to run the most common EXPLAIN and that's it. If you want EXPLAIN ANALYZE in PostgreSQL you need to do it by hand. On the other hand, I've tried to construct a string as close as possible to the ones built by the respective shells. The rationale is that IMO the user should feel at home with the output and recognize it at first sight. Per database. I don't know whether this implementation is going to work well. Let's see whether people like it.
* AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-041-3/+13
|
* clear statement cache when tables are alteredAaron Patterson2011-10-271-0/+6
|
* Merge pull request #3258 from ileitch/3-1-stableAaron Patterson2011-10-201-1/+7
| | | | Postgres: Do not attempt to deallocate a statement if the connection is no longer active.
* reset prepared statement when schema changes imapact statement results. ↵Aaron Patterson2011-10-181-11/+43
| | | | fixes #3335
* Use the schema_search_path in prepared statements.Juan M. Cuello2011-10-051-3/+4
| | | | | To allow the use of prepared statements when changing schemas in postgres, the schema search path is added to the sql key.
* LRU should cache per process in postgresql. fixes #1339Aaron Patterson2011-09-071-10/+14
|
* fixing view queriesAaron Patterson2011-09-071-3/+5
|
* use the supplied bind valuesAaron Patterson2011-09-071-1/+1
|
* Merge commit 'refs/pull/2909/head' of https://github.com/rails/rails into rawrAaron Patterson2011-09-071-6/+4
| | | | | | * https://github.com/rails/rails: Postgresql adapter: added current_schema check for table_exists? Postgresql adapter: added current_schema check for table_exists?
* Database adapters use a statement pool.Aaron Patterson2011-09-061-5/+41
| | | | | | Database adapters use a statement pool for limiting the number of open prepared statments on the database. The limit defaults to 1000, but can be adjusted in your database config by changing 'statement_limit'.
* Merge pull request #2021 from dasch/more_postgres_utilsAaron Patterson2011-08-291-1/+3
|\ | | | | Make #extract_schema_and_table an instance method in Utils
| * Make #extract_schema_and_table an instance method in UtilsDaniel Schierbeck2011-07-091-1/+3
| | | | | | | | Also, move the utils test into its own test case.
* | Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-081-0/+4
| | | | | | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.