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 1g6ozy-0008Qq-6O for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Oct 2018 03:35:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g6ozw-0001DT-Gi for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Oct 2018 03:35:52 +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 1g6ozw-0001DI-6F for pgsql-hackers@lists.postgresql.org; Mon, 01 Oct 2018 03:35:52 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g6ozt-0007nw-5A for pgsql-hackers@postgresql.org; Mon, 01 Oct 2018 03:35:51 +0000 Received: by mail-qk1-x742.google.com with SMTP id q12-v6so7227857qkl.13 for ; Sun, 30 Sep 2018 20:35:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=FPsyTrDKBVcKxjxvytVE7toibxh/LljmJQyZ71caYqM=; b=nmcgjunKtsFZt/ZAyMWJzv4M1KAZNSNg8fqldGe5i82jC3NRtZI527eu+yFaFgDSNa ppdxJEbPkUUpw0vCmb5S3uo010+aZocoYD2AOT2hAF6gZlHfWOkRpgvN9Qf0VeuCyzTd pUj4Mv1Jz7XGuMe/lTGfqL1pLJ8fdqpUTcDmHv77bdWJpplHGB7EX4mPjfRnyYaon1NG gpWP5q73weOnqPqpO7N7musvKlKsymDw2PLZLZauAIQrFji76j70j/iLSeZkcHkmbggz hn1RKyfy+9Bk9F77vRddjWVslimEDguCq8Bq+dMiqQzxvVk4pP8cbOLV6XCN2n170GXa EhWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=FPsyTrDKBVcKxjxvytVE7toibxh/LljmJQyZ71caYqM=; b=XsoWXltfAq/QC/FMJB3rjA+yrz0RR1RdTmuTrGBJQyCOjN2uVEp7qrhTVu00TXJ9vm +bSMfDmFwGELnRFTwxMMrlsUnd0Ch+UfffTW1BRHeduYWUaPwuptHmDPgFjRCuLg0A1h euI9XQAYhwCjhbdoibcWDiDmYR3VH4q0uLe8FzYFEdkJNmPeDmI4Myn+qT7we/Ei+ts9 IekRL1AAhZCH6BAC2ahJ8Kn3aDXPt/YUpzLuBJO96n455BjEqvNmLqj6wap5OnvSy953 eMMvGqMPRm2ajKbQeyXyNvlLwWTvyIGw/Mzmhgnb3SqZFZ11xKw7Afdjf16gcAiejuK+ ksdg== X-Gm-Message-State: ABuFfog+8cqKuSY2w+ZTv0dngl30SSznvIPdekhh18J0d4WH43CzsbmH /SwOb5u1Xd3zRL8lqoyGbcf/7g== X-Google-Smtp-Source: ACcGV62rPSrspX8htLm5wagr2JKJfJPXj5UPtXF9/ORg0EKlyFeDAN/gSnJCbxHMALo2eJpPIZ3Oxw== X-Received: by 2002:a37:1b4b:: with SMTP id b72-v6mr6839090qkb.48.1538364948355; Sun, 30 Sep 2018 20:35:48 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.56.48.211]) by smtp.gmail.com with ESMTPSA id f63-v6sm6977827qtb.64.2018.09.30.20.35.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Sep 2018 20:35:47 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 2244E560; Mon, 1 Oct 2018 00:35:46 -0300 (-03) Date: Mon, 1 Oct 2018 00:35:46 -0300 From: Alvaro Herrera To: Jaime Casanova Cc: yotsunaga.naoki@jp.fujitsu.com, david.g.johnston@gmail.com, Pg Hackers , michael@paquier.xyz Subject: Re: automatic restore point Message-ID: <20181001033546.ezp2tchxefnkhk2m@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Jul-02, Jaime Casanova wrote: > You can also create a normal trigger BEFORE TRUNCATE to create a > restore point just before running the TRUNCATE command. On every single table? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services