Re: [GENERAL] stopping processes, preventing connections

2010-03-22 Thread Dimitri Fontaine
Scott Marlowe writes: > It was a few posts back, but our discussion point was minor point > upgrades and the fact that OP was running 8.3.1 and not sure there > were updates to 8.3.9 (or latest) out there for debian. I'm quite > sure debian has 8.3.9 out by now. Yes: http://packages.debian.o

Re: [GENERAL] stopping processes, preventing connections

2010-03-21 Thread Scott Marlowe
On Sun, Mar 21, 2010 at 5:33 AM, Craig Ringer wrote: > On 21/03/2010 7:12 AM, Scott Marlowe wrote: >> >> On Sat, Mar 20, 2010 at 3:57 PM, Herouth Maoz >>  wrote: >>> >>> >>> The problem is not so much danger in upgrading, but the fact that doing >>> so >>> without using the system's usual security

Re: [GENERAL] stopping processes, preventing connections

2010-03-21 Thread Craig Ringer
On 21/03/2010 7:12 AM, Scott Marlowe wrote: On Sat, Mar 20, 2010 at 3:57 PM, Herouth Maoz wrote: The problem is not so much danger in upgrading, but the fact that doing so without using the system's usual security/bugfix update path means non-standard work for the sysadmin, meaning he has to

Re: [GENERAL] stopping processes, preventing connections

2010-03-20 Thread Scott Marlowe
On Sat, Mar 20, 2010 at 3:57 PM, Herouth Maoz wrote: > > > The problem is not so much danger in upgrading, but the fact that doing so > without using the system's usual security/bugfix update path means > non-standard work for the sysadmin, meaning he has to upgrade every package > on the system u

Re: [GENERAL] stopping processes, preventing connections

2010-03-20 Thread Herouth Maoz
? Scott Marlowe: On Sat, Mar 20, 2010 at 11:44 AM, Herouth Maoz wrote: The server version is 8.3.1. Migration to a higher version might be difficult as far as policies go, if there isn't a supported debian package for it, but if you can point out a version where this has been fixed I mig

Re: [GENERAL] stopping processes, preventing connections

2010-03-20 Thread Scott Marlowe
On Sat, Mar 20, 2010 at 11:44 AM, Herouth Maoz wrote: > The server version is 8.3.1. Migration to a higher version might be > difficult as far as policies go, if there isn't a supported debian package > for it, but if you can point out a version where this has been fixed I might > be able to persu

Re: [GENERAL] stopping processes, preventing connections

2010-03-20 Thread Herouth Maoz
quoth Greg Smith: Herouth Maoz wrote: Aren't socket writes supposed to have time outs of some sort? Stupid policies notwithstanding, processes on the client side can disappear for any number of reasons - bugs, power failures, whatever - and this is not something that is supposed to cause a ba

Re: [GENERAL] stopping processes, preventing connections

2010-03-17 Thread Greg Smith
Herouth Maoz wrote: Aren't socket writes supposed to have time outs of some sort? Stupid policies notwithstanding, processes on the client side can disappear for any number of reasons - bugs, power failures, whatever - and this is not something that is supposed to cause a backend to hang, I wo

Re: [GENERAL] stopping processes, preventing connections

2010-03-17 Thread Tom Lane
Craig Ringer writes: > On 17/03/2010 8:43 PM, Herouth Maoz wrote: >> (gdb) backtrace >> #0 0x8dfcb410 in ?? () >> #1 0xbff10a28 in ?? () >> #2 0x083b1bf4 in ?? () >> #3 0xbff10a00 in ?? () >> #4 0x8db98361 in send () from /lib/tls/i686/cmov/libc.so.6 >> #5 0x08195d54 in secure_write () >> #6

Re: [GENERAL] stopping processes, preventing connections

2010-03-17 Thread Herouth Maoz
On Mar 17, 2010, at 14:56 , Craig Ringer wrote: > On 17/03/2010 8:43 PM, Herouth Maoz wrote: >> >> On Mar 17, 2010, at 13:34 , Craig Ringer wrote: >> >>> On 17/03/2010 6:32 PM, Herouth Maoz wrote: On Mar 3, 2010, at 18:01 , Josh Kupershmidt wrote: > Though next time you see

Re: [GENERAL] stopping processes, preventing connections

2010-03-17 Thread Craig Ringer
On 17/03/2010 8:43 PM, Herouth Maoz wrote: On Mar 17, 2010, at 13:34 , Craig Ringer wrote: On 17/03/2010 6:32 PM, Herouth Maoz wrote: On Mar 3, 2010, at 18:01 , Josh Kupershmidt wrote: Though next time you see a query which doesn't respond to pg_cancel_backend(), try gathering information

Re: [GENERAL] stopping processes, preventing connections

2010-03-17 Thread Herouth Maoz
On Mar 17, 2010, at 13:34 , Craig Ringer wrote: > On 17/03/2010 6:32 PM, Herouth Maoz wrote: >> >> On Mar 3, 2010, at 18:01 , Josh Kupershmidt wrote: >> >>> Though next time you see a query which doesn't respond to >>> pg_cancel_backend(), try gathering information about the query and >>> what

Re: [GENERAL] stopping processes, preventing connections

2010-03-17 Thread Craig Ringer
On 17/03/2010 6:32 PM, Herouth Maoz wrote: On Mar 3, 2010, at 18:01 , Josh Kupershmidt wrote: Though next time you see a query which doesn't respond to pg_cancel_backend(), try gathering information about the query and what the backend is doing; either you're doing something unusual (e.g. an a

Re: [GENERAL] stopping processes, preventing connections

2010-03-17 Thread Herouth Maoz
On Mar 3, 2010, at 18:01 , Josh Kupershmidt wrote: > Though next time you see a query which doesn't respond to > pg_cancel_backend(), try gathering information about the query and what the > backend is doing; either you're doing something unusual (e.g. an app is > restarting the query automati

Re: [GENERAL] stopping processes, preventing connections

2010-03-03 Thread Josh Kupershmidt
> > >> Second, and the more complicated one - what do I do about rogue queries >> that are running when my process starts? Today we had a query that ran since >> yesterday. I called pg_cancel_backend() on it several times and waited for >> almost two hours - to no avail. Eventually I had to ask our

Re: [GENERAL] stopping processes, preventing connections

2010-03-03 Thread Herouth Maoz
On Mar 3, 2010, at 18:01 , Josh Kupershmidt wrote: > > On Wed, Mar 3, 2010 at 8:31 AM, Herouth Maoz wrote: > > First, the easy part - regarding allowing/disallowing queries. Is it possible > to GRANT or REVOKE access to tables based on the originating IP? > > I'd suggest separating out acces

Re: [GENERAL] stopping processes, preventing connections

2010-03-03 Thread Josh Kupershmidt
On Wed, Mar 3, 2010 at 8:31 AM, Herouth Maoz wrote: > > > First, the easy part - regarding allowing/disallowing queries. Is it > possible to GRANT or REVOKE access to tables based on the originating IP? > I'd suggest separating out access to your tables by roles, and then restricting those roles

[GENERAL] stopping processes, preventing connections

2010-03-03 Thread Herouth Maoz
Hi. I'm continuing on with the problems I have in our reports/data warehouse system. Basically, the system brings in tables from our various production systems (sybase, postgresql, mssql, different servers) every night. Some tables are brought in whole, and some are brought in based on a date f