aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | accept option for recreate db for postgres (same as mysql now)artemk2011-08-041-2/+4
|/
* Refactor PostgreSQLAdapter a bitDaniel Schierbeck2011-07-081-16/+18
| | | | | Move the private method #extract_schema_and_table into a separate Utils module so that it can be tested without resorting to #send.
* Improve ordering of multiple columns on postgresqlLucia Escanellas2011-06-241-1/+1
| | | | | * Only on postgresql, order("first asc, second asc") was invalid * Closes #1720
* Merge remote branch 'rails/master' into pg_schema_fuPaul Gallagher2011-06-191-2/+2
|\
| * Remove trailing whitespacesGuillermo Iguaran2011-06-121-2/+2
| |
* | Make PostgreSQL adapter view-compatiblePaul Gallagher2011-06-191-3/+5
| | | | | | * amongst other things, allows meta_search to run against view-backed models
* | make extract_schema_and_table a private methodPaul Gallagher2011-06-111-20/+17
| |
* | remove table quoting in primary_key methodPaul Gallagher2011-06-111-1/+1
| | | | | | * add/cleanup tests
* | apply private method indentation conventionPaul Gallagher2011-06-101-22/+22
| | | | | | * tidy test code and fix my typo
* | Improve PostgreSQL adapter schema-awarenessPaul Gallagher2011-06-101-25/+51
|/ | | | | | | * table_exists? scoped by schema search path unless schema is explicitly named. Added tests and doc to clarify the behaviour * extract_schema_and_table tests and implementation extended to cover all cases * primary_key does not ignore schema information * add current_schema and schema_exists? methods * more robust table referencing in insert_sql and sql_for_insert methods
* Revert "[activerecord][postgresql] verify if table has a schema(not ↵Jon Leighton2011-05-311-5/+6
| | | | | | public)". This caused a test breakage. See #1410 for details. This reverts commit c44418ea4e09cc81da47edbc9ac5f31c7e32c1b4.
* [activerecord][postgresql] verify if table has a schema(not public)Lucas Stephanou2011-05-271-6/+5
|
* find sequences with pg schemas properlyLucas Stephanou2011-05-271-4/+11
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-251-2/+2
|\ | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb