Re: [GENERAL] Verifying a timestamp is null or in the past

2012-01-01 Thread Alexander Farber
Hello Ray and others, On Sat, Dec 31, 2011 at 10:26 AM, Raymond O'Donnell wrote: >> # select pref_move_week('DE16290', 'DE1'); >> ERROR:  query has no destination for result data >> HINT:  If you want to discard the results of a SELECT, use PERFORM instead. >> CONTEXT:  PL/pgSQL function "pref_mo

Re: [GENERAL] Verifying a timestamp is null or in the past

2012-01-01 Thread Raymond O'Donnell
On 01/01/2012 14:42, Alexander Farber wrote: > Hello Ray and others, > > On Sat, Dec 31, 2011 at 10:26 AM, Raymond O'Donnell wrote: >>> # select pref_move_week('DE16290', 'DE1'); >>> ERROR: query has no destination for result data >>> HINT: If you want to discard the results of a SELECT, use PE

[GENERAL] 9.1.2: Preventing connections / syncing a database

2012-01-01 Thread Jay Levitt
Our development workstations maintain a local copy of the production database (which has been small enough that this is workable right now, and preferable to having a test database with generated fake data). We've been doing this by rsync'ing a compressed pgdump from the production server, dro

Re: [GENERAL] 9.1.2: Preventing connections / syncing a database

2012-01-01 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 > 1. How can I prevent (or redirect, or timeout, or anything) new connections? > I think superuser roles might be exempt from connection limits and > privileges. I could repeatedly terminate backends until I'm able to rename > the database,

Re: [GENERAL] 9.1.2: Preventing connections / syncing a database

2012-01-01 Thread Rob Sargentg
On 01/01/2012 11:51 AM, Jay Levitt wrote: revoke connect on database rails_dev from public; select pg_terminate_backend(procpid) from pg_stat_activity where datname='rails_dev'; Still, the app can reconnect. (So can psql.) So... 1. How can I prevent (or redirect, or timeout, or anything) ne