Received: from mail2.panix.com (mail2.panix.com [166.84.0.213]) by hub.org (8.9.1/8.9.1) with ESMTP id IAA04210 for ; Mon, 26 Oct 1998 08:54:03 -0500 (EST) (envelope-from tomg@nrnet.org) Received: from mailhost.nrnet.org (root@mailhost.nrnet.org [166.84.192.39]) by mail2.panix.com (8.8.8/8.8.8/PanixM1.3) with ESMTP id IAA15211 for ; Mon, 26 Oct 1998 08:53:56 -0500 (EST) Received: from localhost (tomg@localhost) by mailhost.nrnet.org (8.8.7/8.8.4) with SMTP id IAA14527 for ; Mon, 26 Oct 1998 08:18:48 -0500 Date: Mon, 26 Oct 1998 08:18:48 -0500 (EST) From: Thomas Good To: pgsql-sql@postgreSQL.org Subject: Re: [SQL] idiom to mv recs => [NEW] bleeding lock? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 26 Oct 1998, Jan Wieck wrote: > Use a transaction and lock the source table first. > > BEGIN TRANSACTION; > LOCK TABLE src_table; Jan & Herouth, I've been using this for some time but lately lots of data is going into the system (hope this means more revenue as well ;-) My point: when attempting to do a SELECT the table lock blocks even this activity. Is this a bleeding lock? Shouldn't a simple SELECT succeed? I dunno...but this is problematic as users are looking for info while the data entry person is doing her thing...ouch. Another bit of whining: in my PROGRESS dbs the user gets a NOTICE when a table is LOCKED and his/her SELECT is on hold: `tablename is in use by doofus on term/1a11...press CTRL-C or Wait' Is there a way to implement this with pg? Cheers, Tom ----------- Sisters of Charity Medical Center ---------- Department of Psychiatry ---- Thomas Good, System Administrator North Richmond CMHC/Residential Services Phone: 718-354-5528 75 Vanderbilt Ave, Quarters 8 Fax: 718-354-5056 Staten Island, NY 10304 www.panix.com/~ugd ---- Powered by PostgreSQL 6.3.2 / Perl 5.004 / DBI-0.91::DBD-PG-0.69