Kurt StephensNerd Up! | ||||||
postgresPostgres and Ruby: Blocking LISTENs for NOTIFY
http://devblog.famundo.com/articles/2006/12/07/improving-postgres-listen... Unfortunately this hack blocks all threads. It should use rb_thread_select(), not select(). Ruby 1.9 : postgres gem patch
I did this little hackage during a boring PGcon 2008 talk… This patch allows the postgres gem 0.7.9.2008.01.28 to be compiled under Ruby 1.9 against PostgreSQL 8.3.0 client libraries. It appears to work against a PostgreSQL 8.1 server, but I have not run any detailed testing, yet. --- ext/extconf.rb.orig 2008-05-22 09:47:06.000000000 -0500 +++ ext/extconf.rb 2008-05-22 09:52:28.000000000 -0500 @@ -1,6 +1,9 @@ +# Ruby 1.9 +PLATFORM = RUBY_PLATFORM unless defined? PLATFORM + # windows compatibility, need different library name if(PLATFORM =~ /mingw|mswin/) then <br class="clear" /> |
||||||
Recent comments
2 weeks 4 days ago
7 weeks 3 hours ago
17 weeks 3 hours ago
18 weeks 4 days ago
20 weeks 6 days ago
20 weeks 6 days ago
24 weeks 1 day ago
24 weeks 1 day ago
26 weeks 11 hours ago
26 weeks 4 days ago