search for: postgresql_adapter

Displaying 20 results from an estimated 50 matches for "postgresql_adapter".

2006 Nov 24
7
Anyone know whats going on with PostgreSQL async_exec errors?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anyone know what''s going on with ActiveRecord Edge and 1.2RC1 unit tests. I get 13 failures from the "async_exec" method call. ie: test_callback_rollback_in_save(ConcurrentTransactionTest): ActiveRecord::StatementInvalid: NoMethodError: undefined method `async_exec'' for #<PGconn:0xb75a8754>: SET
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
...ings_count\" + 1 WHERE (\"id\" = 2) AND ( (\"posts\".\"type\" = ''SpecialPost'' ) ) "> ---Backtrace--- ./test/../lib/active_record/connection_adapters/abstract_adapter.rb:156:in `log'' ./test/../lib/active_record/connection_adapters/postgresql_adapter.rb:407:in `execute_without_counting'' ./test/abstract_unit.rb:71:in `execute'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:162:in `update_sql'' ./test/../lib/active_record/connection_adapters/postgresql_adapter.rb:418:in `update_sql'...
2012 Dec 12
1
#8498 postgres_adapter fix for disable_referential_integrity
...module): https://github.com/rails/rails/pull/8498 Fixes this issue also seen by others in Foreigner: https://github.com/matthuhiggins/foreigner/issues/61 Problem that it resolves: /.../jenkins/.rvm/gems/ruby-1.9.3-p194@my_application/gems/activerecord-3.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:652:in `async_exec'': PG::Error: ERROR: permission denied: "RI_ConstraintTrigger_1234" is a system trigger (ActiveRecord::StatementInvalid) : (SQL here) from /.../jenkins/.rvm/gems/ruby-1.9.3-p194@my_application/gems/activerecord-3.2.9/lib/active_record/connection_adapte...
2008 Jan 15
1
actionmailer the background
...;::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum /usr/local/projects/ecera/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract_adapter.rb:128:in `log'' /usr/local/projects/ecera/vendor/rails/activerecord/lib/active_record/ connection_adapters/postgresql_adapter.rb:142:in `query'' /usr/local/projects/ecera/vendor/rails/activerecord/lib/active_record/ connection_adapters/postgresql_adapter.rb:528:in `column_definitions'' /usr/local/projects/ecera/vendor/rails/activerecord/lib/active_record/ connection_adapters/postgresql_adapter.rb:223:in...
2008 Feb 22
0
[PATCH] fix postgresql_adapter index dumping with multiple schemas
Hi, I''ve recently updated an old patch to PostgreSQLAdapter#indexes, which fixes a bug with schema dumping with multiple database schemas present. The new patch corrects an edge case bug in the original patch, includes test cases, and has been tested against PostgreSQL 7.4, 8.1 and 8.3. The ticket is at http://dev.rubyonrails.org/ticket/8659 ; I''d appreciate any code review,
2008 Mar 04
2
Why would ActiveRecord connect to Postgres as root?
...dev environment everything works fine, however following a deployment with Capistrano about an hour ago, I get the following error: PGError in HomeController#index FATAL: role "root" does not exist /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/postgresql_adapter.rb:713:in `connect'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/postgresql_adapter.rb:713:in `connect'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/postgresql_adapter.rb:237:in `initialize''...
2009 Nov 26
2
[error] avahi_entry_group_add_service_strlst("AdminNodeFQDN") failed: Invalid host name
...ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = 'pools'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:494:in `query' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:1039:in `column_definitions' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/postgresql_adapter.r...
2006 Feb 09
2
postgres connection problems
...ion denied Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? RAILS_ROOT: /var/www/html/blog/public/../config/.. Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/postgresql_adapter.rb:23:in `connect'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/postgresql_adapter.rb:23:in `postgresql_connection'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:1...
2011 Sep 18
9
Rails 3 and postgresql
I have a simple project created around a very, very simple database: one main table packs with just three rows Column | Type | Modifiers --------+-----------------------------+---------------------------------------------------- id | integer | not null default nextval(''packs_id_seq''::regclass) nombre | character
2007 Mar 05
2
SOLVED:Re: How to select postgres for usage instead postgres-pr?
...;postgres''. I have done the following: > > > > ''gem install postgres'' > > > > I now have both postgres-0.7.1 and postgres-pr-0.4.0 sitting in > > C:\pgRails\lib\ruby\gems\1.8\gems > > > > What do I need to alter in my database.yml/postgresql_adapter.rb > > documents so that I can access the postgres driver? > > > > -- > > Regards > > > > Andrew > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rai...
2010 Jan 16
0
Postgresql error
.../lib/ruby/gems/1.8/gems/postgres-pr-0.6.1/lib/postgres-pr/postgres-compat.rb:23:in `new'' /usr/lib/ruby/gems/1.8/gems/postgres-pr-0.6.1/lib/postgres-pr/postgres-compat.rb:23:in `initialize'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `connect'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `connect'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:217:in `initialize'...
2006 Mar 08
0
server closed the connection unexpectedly
...r while processing the request. : SELECT * FROM works ORDER BY added desc LIMIT 10 /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in `log'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/postgresql_adapter.rb:137:in `execute'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/postgresql_adapter.rb:351:in `select'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/postgresql_adapter.rb:118:in `select_all'...
2006 Feb 16
2
Postgresql array converts to string????
Hi We are using postgresql with rails, we find out that when we read array from postresql (postgresql support array type in table) the rails (or postgresql_adapter) converts the arrays into Strings, example: we have a data type array in a table which has two cells: [cell1,cell2], rails will convert them into string like this {cell1,cell2}. So after received the result from a SQL request we have convert the string back to array, it is very time consuming job....
2005 Dec 19
0
weird postgres adapter error
..._name order by created_at desc ...<snip>... c:/development/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in `log'' c:/development/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/postgresql_adapter.rb:137:in `execute'' c:/development/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/postgresql_adapter.rb:351:in `select'' c:/development/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/postgresql_adapter....
2006 Jan 26
0
If you want to disconnect a database properly, there is the code:)!!!
...moves the connection, but its doesn''t unbind the link between rails and the database. So we decide to add some new methodes in order to remove all link between rails and the database. First, we added a new methode to the adapter, we are using postgresql, the following code is written for postgresql_adapter.rb if you are using another database, you have to rewrite it. In postgresql_adapter.rb, add the follong code def disconnect if (@connection != nil) then # methode "close" is exported by the postgres.so for disconnect the database @connection.close @connection = nil # clear...
2014 Feb 17
0
Need help -FATAL: database "catarse_development" does not exist
...you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message. rake aborted! FATAL: database "catarse_development" does not exist /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:831:in `initialize' /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:831:in `new' /usr/local/rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.0.2/lib/active_record/connection_adapters/postgresql_adapter.rb:831:in `connect...
2011 Sep 13
4
Prepared statements and postgreSQL schemas
...ter if you changed the schema, i.e, the prepared statement is executed ALWAYS for the same schema, the one set when the statement was prepared. I migrated yesterday from 3.0 to 3.1 and ended up with all my new data (INSERT operations) into the same schema. ''exec_cache'' method in postgresql_adapter.rb uses the sql string as the cache key. Maybe we could include also the ''schema_search_path''. I didn''t want to go into details here, but I could create an issue or a pull request if this approach seems reasonably. Juan -- You received this message because you are sub...
2006 Jul 31
2
ambiguous column name in has_many :through
...due_on < ''2006-07-31 13:40:17'')) from C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log'' from C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/postgresql_adapter.rb:148:in `execute'' from C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/postgresql_adapter.rb:361:in `select'' from C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/connection_adapters/postgresql_adapter....
2013 Jul 23
1
Postgres adapter misconfigured on Linux?
...> ^ > : CREATE INDEX "index_sf_events_on_account_id" ON "sf_events"( > )/home/ben/.rvm/gems/ruby-1.9.3-p392-railsexpress@workbench-api/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in > `async_exec'' > /home/ben/.rvm/gems/ruby-1.9.3-p392-railsexpress@workbench-api/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in > `block in execute'' > /home/ben/.rvm/gems/ruby-1.9.3-p392-railsexpress@workbench-api...
2006 Feb 19
2
possible rails -> postgresql bug
Hi I have a problem accessing an array field in a Postgresql database. Here is the table definition. View "neil.flashing_codes" Column | Type | Modifiers -------------+-----------------------+----------- code | character varying(10) | description | text | folds | integer[] | View definition: SELECT