Displaying 20 results from an estimated 3000 matches similar to: "postgres-pr barfs at ActiveRecord::Base.allow_concurrency = true"
2007 Mar 05
3
postgres barfage revisted
First of all, I''d like to do what I''ve seen several others here do:
thank Ezra and any other contributors for producing a really great
plugin. Even though I''m having some minor problems, this is all so
approachable and easy to work with and dig into... I hate to think of
the hoops you''d need to jump through (both as creator of such a system
and as a user) to
2006 Jan 16
0
PGconn class doesn''t recognize all the function export from postgres.so
Hi,
I''m trying to write a new postgresql adapter which
interited the old postgres adapter and I try to use
the PGconn class, But I find out I can''t access to
some of the exported functions in postgres.so (I''m
using LINUX) In fact, only the methode export with
rb_define_singleton_method can be used, only function
s exported with rb_define_method, the PGconn ruby
class
2008 Jan 23
0
allow_concurrency
I see that allow_concurrency is set to false by default. What are the risks
and what can I eventually gain by setting it to true in terms of application
speed ?
TIA,
ngw
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2006 May 12
5
How is Actionpack is not thread-safe? @@allow_concurrency?
Hi,
I found many references on the Web to the fact
that "Rails is not thread-safe".
However, I have not found an explanation _why_ it isn''t?
What happens if multiple requests are handled concurrently
by ActionPack?
Assuming that the code I execute in my controller methods
is thread safe, is this ok?
If not -- what happens?
The following makes it sound like the issue is
2006 Aug 18
1
Ezra....allow_concurrency = false?
In a previous email you wrote this:
Glad you''re getting some use out of the plugin ;) ActiveRecord does
have some issues with threading and concurrency that can sometimes
cause that error you are seeing. Open up your script/backgroundrb/
start file and comment out the following line:
ActiveRecord::Base.allow_concurrency = true
Make sure you do that up in your main app script folder
2007 Apr 18
1
Postgres-pr interface not found
I''ve installed the postgres-pr gem, and it is found using gem list
v0.4.0.
In my active record source, inside the postgresql_adapter.rb file, I''ve
changed line 7 from:
require_library_or_gem ''postgres'' unless
self.class.const_defined?(:PGconn)
to:
require_library_or_gem ''postgres-pr'' unless
self.class.const_defined?(:PGconn)
...to try and
2006 May 28
5
Rails, ActionController::Base.allow_concurrency and mongrel
Hello all,
Are you aware of the rails ActionController::Base.allow_concurrency option ?
If this option is true, rails is able to process simultaneous multiples
actions.
It appears that rails is thread-safe (if the user application is), and
that this option is mostly unknown.
Webrick take care of this option in rails-1.1.2/lib/webrick_server.rb at
line 80 :
REQUEST_MUTEX.lock unless
2006 Apr 21
4
Bus error in ./script/console with postgres (ext. library)
Is there some special magic that needs to be performed so that the
C-based postgres extension library works with the Rails console?
I have installed the postgres extension library (replacing the pure Ruby
version: postgres-pr) from <http://ruby.scripting.ca/postgres/>
Everything works great from WEBrick, but as soon as I fire up the
console and try to use it, I get a bus error:
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
2005 Dec 21
1
Escape bytea binary data in postgres SQL
Hi!
I want to escape binary data correctly either manually or using some
pre-defined function that does this for me!
I have found on the web: PGconn.escape_bytea but I only get "undefined
method". Any ideas, what is the correct way of doing this my self?
I''m using Rails (WEBrick) under Windows XP with postgre-pr 0.4.0
I have tried:
s_buffer = s_buffer.gsub(/['']/,
2004 Jun 23
0
UPDATE Patch for postgres enabled app_voicemail.c
I forgot to take out the portion that would read in the voicemail boxes from
the text file. If you want to leave it in then you could have some voicemail
boxes defined in the text voicemail.conf. I do not, so I have removed it.
Below is the new patch:
*** app_voicemail.c 2004-06-23 07:55:54.000000000 -0600
--- app_voicemail.c.new 2004-06-23 07:55:47.000000000 -0600
***************
*** 49,61 ****
2004 Jun 23
0
Patch for postgres enabled app_voicemail.c
Hello all,
I am just getting going on building my system, but I thought I'd send you
all a patch that I wrote so the command:
show voicemail users
issued from the CLI works properly when there is a postgres backend for the
voicemail. The current version of the app does not display the voicemail
boxes found in a database.
It is called in the load_config function. I haven't done
2010 May 18
0
Active record is not releaed used memory
I have tried small ruby program like
require ''rubygems''
require ''postgres''
db = PGconn.connect(''localhost'', 5432, '''', '''', ''prdjnj'',''postgres'',
''postgres'')
res=db.exec("select * from users limit 300000")
res.clear
puts "After clear result
2011 Jul 27
1
X-Lite-4.0 barfs on install. What's Mono?
This is a low priority thing, but X-Lite-4.0 is not out for linux and the
windows version barfs, and I'm wondering if anyone can spot what's going
wrong. I go through menus, agree to license, accept default install location
& click next. Nothing happens. Click next again, and I have the "install"
option. That exits prematurely with this:
~~~~~~~~~~~~~~~~~~
bash-4.1$ wine
2002 Sep 30
1
[LLVMdev] llvm-g++ barfs
Hi,
In the quest for better test cases for my MP, I thought of trying
the Stepanov Abstraction Penalty benchmark. But apparently llvm-g++
is not ready for such terrible things. Let me know if you want me
to send the source code (it is widely available).
gaeke|csil-suna37|~/cs/426/MP1/step|[1177]% /usr/dcs/projects/cs426/Software/gcc_install/bin/g++ stepanov.cpp -o stepanov
In file included from
2011 Mar 15
1
install.packages barfs on dependencies= argument
I'm sure I used to be able to do
my.dependencies<- c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances")
install.packages("animation", lib = Sys.getenv("R_LIBS_USER"), dependecies = my.dependencies)
but now I get
Error in download.file(url, destfile, method, mode = "wb", ...) :
unused argument(s)
2001 Sep 20
0
Encarta install from Samba server barfs
Greetings:
I tried to install M$ Encarta over my internal network onto my
kids' Windoze 2K machine tonight; the Encarta install stuff is in a
vfat partition on the Samba server. The install started, then
quit about 14% of the way through - the connection to the Samba
server apparently was lost - the installer began complaining
about being unable to find the CD-ROM, and I was unable to browse
2001 Aug 28
1
OpenSSHd barfs upon reauthentication: PAM, Solaris 8
We've been having trouble with OpenSSH 2.9p2, running on Solaris 8
(a domain of an E10k), with PAM authentication turned on. It
intermittently crashes with signal 11 (seg fault) after the password
is entered, after the MOTD is displayed, but before control is passed
over to the login shell. I eventually managed to persuade sshd's child
process to consistently crash, upon entry of an
2006 Feb 01
1
R CMD check barfs at 'suggested' package
I have been running R CMD check for the first time on of our own
packages, which otherwise builds, installs and runs just fine. The
package depends on package akima and suggests package multtest;
suggesting multtest is indicated because a) it loads a lot of other
Bioconductor packages, very slowly, and b) it is only needed for one
specific subroutine, which executes require(multtest)
2010 Sep 29
3
Foreman barfs on startup.
All,
First attempt at running foreman.
[pax] prov01 /usr/share/foreman/script:# ./server -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/share/foreman/vendor/rails/activesupport/lib/active_support/dependencies.rb:443:in
`old_load_missing_constant'': uninitialized constant Puppet::Rails
(NameError)
from