Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVFoP-00080G-6W for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2023 17:55:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pVFoN-0003dg-W5 for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Feb 2023 17:55:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVFoN-0003dX-LH for pgsql-hackers@lists.postgresql.org; Thu, 23 Feb 2023 17:55:19 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pVFoL-0004BH-7b for pgsql-hackers@lists.postgresql.org; Thu, 23 Feb 2023 17:55:19 +0000 Received: by mail-ed1-x52d.google.com with SMTP id da10so46408976edb.3 for ; Thu, 23 Feb 2023 09:55:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qJPnAi21TwDR2PJx/r+P4U3MrshBhoEtxT9YCgQ0Ybo=; b=ClA1q0t86t9XV9JjuhZnxsf8BMw5nT88+Qkid+wOkC/uMRllZA/Vdh/JHyQSi2qnIH 0xZvSIjxKpfZcyjlkQrWAHcRiENDmEPvrW/p8YjL7cpxKbHT/VRLheqZo7jxoikzLfgX cTMhV3E7kee29gB5O32ygJgJ7zcyIwl+TlHc8kC6L/flGh3MIAgNE5yOfPLZg4rsEA6z +mojrUzp1mbFLEpx4d5oNSMDzjNijexPsE1Dk6SxmBXTFnN9iIopmTBYEhL5ujA7pJ0C H9+BzTy7UtRo7ZJuTElKuDh0g5fU+c1+Ylmqqrq/CpfHCWPsUVWy59GuFFQr+dCxyya1 lG3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qJPnAi21TwDR2PJx/r+P4U3MrshBhoEtxT9YCgQ0Ybo=; b=ZJrL5TaZ+bN0u5VTUfojYh7kUqo4K9jtBlZXcmqijt9iQJEGGl4gGKfy23r3RDYJSw nH8Kcwf196aVq2gzz6jPo5n/JNE2Kg4jL8WHt6BfXUuGFcAFOQXEybAEZhej77sz8yol ePNq3CqOOuuvsJV5u0XfXURA4pxlMMmXH8lcizIn8iwrhiKfCwq4OoyyFCkmIOIIlNIn IGcKNjMNbPkDCC1Ix8ABu5SJc434I1zKH9BcVPzQWaIRObqZkum74BTxnjeM3HZrAZmR ECQTMitIWcMBmP06XrTiHJcJHGhopDOnyLFamKvFUWwLam7jBYvaQgZCQilVLYH4IKNu wKTA== X-Gm-Message-State: AO0yUKWO9IJ936uJIWUlISKBEpEbweYYle7ic4d/b+FUzosCAGT7CCIJ Ma8uamSBzNE9kM0ToeftpV7cplcqG8tj5CT2YUI= X-Google-Smtp-Source: AK7set8KZDO0Ztoyt2hRwxqdha5Y2zeeRmpTBIKYQcN1Pkx17BaflrRrm8Htxo0UNPM7ryi4RzmTd30kGes8EhOCy4M= X-Received: by 2002:a50:9f28:0:b0:4ad:7ba3:5bce with SMTP id b37-20020a509f28000000b004ad7ba35bcemr5742371edf.7.1677174914315; Thu, 23 Feb 2023 09:55:14 -0800 (PST) MIME-Version: 1.0 References: <157609.1677088525@sss.pgh.pa.us> <2f1c8cb9-6f4d-2a03-d069-c4f9c2b574ab@enterprisedb.com> <414445.1677163935@sss.pgh.pa.us> In-Reply-To: From: Nikolay Samokhvalov Date: Thu, 23 Feb 2023 09:55:02 -0800 Message-ID: Subject: Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has) To: Maciek Sakrejda Cc: Tom Lane , Heikki Linnakangas , Peter Eisentraut , Kirk Wolak , PostgreSQL Hackers , Pavel Stehule , amborodin86@gmail.com, Laurenz Albe Content-Type: multipart/alternative; boundary="000000000000fe7c7805f561b660" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000fe7c7805f561b660 Content-Type: text/plain; charset="UTF-8" On Thu, Feb 23, 2023 at 9:05 AM Maciek Sakrejda wrote: > I think Heikki's solution is probably more practical since (1) .. Note that these ideas target two *different* problems: - what was the duration of the last query - when was the last query executed So, having both solved would be ideal. --000000000000fe7c7805f561b660 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Feb 23, 2023 at 9:05 AM Maciek Sa= krejda <m.sakr= ejda@gmail.com> wrote:
I think Heikki's solution is probably more practical since (1) ..

Note that these ideas target two *different* pro= blems:
- what was the duration of the last query
- when= was the last query executed

So, having both solve= d would be ideal.
--000000000000fe7c7805f561b660--