Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAYHt-0004u3-31 for pgsql-general@arkaria.postgresql.org; Thu, 11 Oct 2018 10:33:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAYHr-000660-4e for pgsql-general@arkaria.postgresql.org; Thu, 11 Oct 2018 10:33:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAYHq-00065t-Ml for pgsql-general@lists.postgresql.org; Thu, 11 Oct 2018 10:33:46 +0000 Received: from mail-it1-x12d.google.com ([2607:f8b0:4864:20::12d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gAYHo-0000gC-4C for pgsql-general@postgresql.org; Thu, 11 Oct 2018 10:33:45 +0000 Received: by mail-it1-x12d.google.com with SMTP id 134-v6so12686728itz.2 for ; Thu, 11 Oct 2018 03:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wBxzBKExqXtdrxy3lH8u/rFk/7XWgZx8w2kgLdi27e4=; b=J9ndOS+5R9EedqTZOtW9Rp4w6pR1hBTnzlmPE9oEitqL5/jjQTd0BT4yv3VSBQmXKa 9aEz/bIpG6CyKBbJOvmz5f8eGyLAk7HnSX0sFYFkQp9kYXwqHqTML2fXmdyt/SdAJC3E ULD2Xl4SMe0yHn+jr4nnGrao8ZYX5wT7Zy7+tB9vyYaI3GMMBulOCgxRg4UTW8WPXTTl RQ2U5WJ7zL7LGsIWQy53en9HMSWRpCJd3EJ8veoSb5Sbxyxp/mZgyd7rcr/Fg7c385Zi Nz+AHvQjxCn0D9zMsc13mTGMgUpZREiJADXx2C7zYpmYkpw30+DosJPOeWIBrXw0oPbF SZzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wBxzBKExqXtdrxy3lH8u/rFk/7XWgZx8w2kgLdi27e4=; b=JuRE1MoV+QyNCSMlSWUEwYWcfAnvFac/7k99vNA6TTvM5dgu0n981RHJknwzHeTruQ mqxsEnZqWeRTJdNXt5W0/kJhAanFb2NkJhQ54+XZtwgIRzxv+8qrHu8MfbsK4h189dUK X958EXF2qKC4J/kr9+mTupPzmXhP2nQL4tqs4miYoBuDrmGdBSuFbdzc8mdCGh8wQ9R4 VAYtVdt6xT+Xt/71YnuOB2XvgOMmgMlVaDlTXhwaTXj210lD/of1F57dPgeegKUuETBq Z8arMnYIrp3FU+MZZ8G2QwKgui14ufX7JxR1VJLmc+/PGXzATOjThotiH6yeNu+iDjDy HkZg== X-Gm-Message-State: ABuFfoi/M2F6d7G/AHX48FivYxZR5ASofOj8NO/Hw8AvBhTEPd+YOeYV 0H3uQ1vhoOGMqCuTN6IL7WU= X-Google-Smtp-Source: ACcGV62UKJ14DZzK+qHt5ICo7fdfAfWTVZb8hdDKQacpeV2pn/6xwq5n789i+CZlyYdCHZPY+Xed4A== X-Received: by 2002:a24:95c4:: with SMTP id m187-v6mr908103itd.83.1539254023092; Thu, 11 Oct 2018 03:33:43 -0700 (PDT) Received: from [192.168.1.140] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id y42-v6sm9542656ita.15.2018.10.11.03.33.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 03:33:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Advice on logging strategy From: Rob Sargent In-Reply-To: Date: Thu, 11 Oct 2018 04:33:41 -0600 Cc: "pgsql-general@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <76CE3E73-7564-441F-9E2B-3F5873D4A153@gmail.com> References: To: Mike Martin X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Oct 11, 2018, at 4:26 AM, Mike Martin wrote: >=20 > I have a question on logging strategy >=20 > I have loggin set to > log_statement =3D 'all' on a network database with logging set to csv = so I can import it to a logging table >=20 > However the database is populated via a nightly routine downloading = data via REST APIusing prepared statements >=20 > This results in enormous log files which take ages to import using = copy becuase each execute statement is logged with the parameters chosen >=20 > Is there any way around this? >=20 > I cant find any way to filter dml statements >=20 > thanks=09 >=20 Do you want all the log lines in you logging table? There was a thread yesterday (10.Oct.2018) on COPY which mention the = possibility of multiple processes COPYing to same table.=