Received: from smtp03.mail.gol.com (smtp03.mail.gol.com [203.216.5.13]) by hub.org (8.9.3/8.9.3) with ESMTP id TAA86198 for ; Thu, 25 May 2000 19:40:41 -0400 (EDT) (envelope-from rmager@vgkk.com) Received: from wks02 (tc-2-098.ariake.gol.ne.jp [203.216.43.98]) by smtp03.mail.gol.com (Postfix) with SMTP id 9E41C4039 for ; Fri, 26 May 2000 08:40:08 +0900 (JST) From: "Rainer Mager" To: Subject: A few misc. questions. Date: Fri, 26 May 2000 08:45:47 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 In-Reply-To: X-Archive-Number: 200005/31 Hi all, I have a few miscellaneous questions. If anyone has any ideas I'd appreciate hearing them. 1. What happens when the primary key index runs out. That is, if we use an INT(4) for a key and we create and delete enough to reach that number then what happens? 2. Does anyone one know a standard SQL method (that works with Postgres) to retrieve the primary key of a newly INSERTed record? We've found one way but it will not work with order databases since it relies on reading data from the sequence tables. 3. Does anyone know of any way to perform a database backup/synchronization that somehow does its work when the database is otherwise not busy? Which is preferred, backing up the PG files or doing some sort of sync? 4. Does anyone have any advice on how often to run VACUUM? Any rules of thumb, etc? Thanks, --Rainer