X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4C43DD1D085; Thu, 15 Apr 2004 06:12:27 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 32308-04; Thu, 15 Apr 2004 06:12:27 -0300 (ADT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 84DE9D1B515; Thu, 15 Apr 2004 06:12:25 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1BE2v4-0009CU-0Y; Thu, 15 Apr 2004 10:12:26 +0100 Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 0A93116241; Thu, 15 Apr 2004 10:12:25 +0100 (BST) From: Richard Huxton To: vickr1z@operamail.com, pgsql-general@postgresql.org, pgsql-sql@postgresql.org Subject: Re: SQL script Date: Thu, 15 Apr 2004 10:12:24 +0100 User-Agent: KMail/1.5 References: <20040415082206.DB1A939834A@ws5-1.us4.outblaze.com> In-Reply-To: <20040415082206.DB1A939834A@ws5-1.us4.outblaze.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200404151012.24789.dev@archonet.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/522 X-Sequence-Number: 59764 On Thursday 15 April 2004 09:22, vickr1z@operamail.com wrote: > good day toall.. > imm running postgreSQL on linux. > my main goal is to create a script that will dump a data from our server > too my local PC. the content of the script would be execute sql command > in one shot: 1. dump data > 2. update and insert some rows to selected table. > > how can i accommplish this task and also how can i run this script? is > there any one ccan help me. any idea will appreciate very much. How are you connecting from client <=> server? Do you just want a pg_dump style dump, a specific table/query? Do you need to provide values for this update/insert, or is it fixed (updating timestamps sort of thing). -- Richard Huxton Archonet Ltd