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
9 weeks 6 days ago
20 weeks 9 hours ago
38 weeks 5 days ago
1 year 2 weeks ago
1 year 36 weeks ago
1 year 48 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago