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 1noEDi-0001Iq-Jd for pgsql-general@arkaria.postgresql.org; Tue, 10 May 2022 00:59:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1noEDh-0000qs-Gk for pgsql-general@arkaria.postgresql.org; Tue, 10 May 2022 00:59:21 +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 1noEDh-0000qj-6B for pgsql-general@lists.postgresql.org; Tue, 10 May 2022 00:59:21 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1noEDd-0001x1-O6 for pgsql-general@lists.postgresql.org; Tue, 10 May 2022 00:59:20 +0000 Received: by mail-ej1-x633.google.com with SMTP id z2so28359093ejj.3 for ; Mon, 09 May 2022 17:59:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=H23S7UYCL3kwOruye5L36xynkUCuSu7x1OyJigx5xto=; b=eTvjPhCsQzYIjDx9BupwAKPGIK6r1+1PoSbWyM2cfw6ujFS0TQgigoN31qUpLTpgal IIgpZ0LgUsCkM1cnLWNEWTy437OEYdJq54ZlY+u8sXE7eXdSJph9GSUMESFSu4ixK8C0 GXWNadJK8ZxFSoL8Da/wsJSD8p6bzkAl2LPKn5dab0ipl6T+EgxrEzIxDnveO9r/ezl0 bQIRiUSy9aG5zLV9NEXSLkX2GGifV1d0OK9Nrl8ISFcTj/KH2vU25MrfRQHDQnTzH/54 AE3ML5jBGvsFLmamaBHYvx7TR/MR0KVg4/uMJkD7kpH4cMipb85wYrBupRcaDyPFdG2A vhaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=H23S7UYCL3kwOruye5L36xynkUCuSu7x1OyJigx5xto=; b=DW9xk2ryw45xN9fp8oFatR3sbOr45p5zbAnG/ggsurdX8yPN7OLoKR2el322LWmI7U c1wH+5USGyCP4SYKxB0i7FI8WiIF0360QQSva42suhghDks8OTmvEDVhSlJH+NCCiqRL 3IUJw3g55d4fUKahl9fDX0OstiF0zZXn9r2f2Ntv0cgJejtpfrBvzDQrWSVFW1R2bVEx ShHAhwDLlxCD/WBb4fU7dY7orJf4fBescRXM6HbOVNiuO12sOqIUIJsjDufjXANM7knD OgItM1aYZHuM/JLTE2Tq3Xx4OpvFg7BBZKlKX7+ns17Q9vSKSfshh8D8csNeYQz+EAMs d3lw== X-Gm-Message-State: AOAM530WzQUEP5Or0NMSh81xz/bkn6gfhoMEGVPSXl5KPmzLLHydpwrM UXS4qn4DJAHme+0mnR3iSyBHv3PBy2HT2Vn/PDGA1Sk5 X-Google-Smtp-Source: ABdhPJzdxdHm4euxffJQ2cRSabBCJcm2XnXqnCWO84Br2Fu9ilMIoRcr26iIjbIdQQ8zt1d+9DKFzTBi60EbPasKBiM= X-Received: by 2002:a17:907:7f0c:b0:6fa:8f52:98fc with SMTP id qf12-20020a1709077f0c00b006fa8f5298fcmr3628561ejc.454.1652144356621; Mon, 09 May 2022 17:59:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Shaozhong SHI Date: Tue, 10 May 2022 01:59:05 +0100 Message-ID: Subject: Set timeout just on a query? To: pgsql-general Content-Type: multipart/alternative; boundary="0000000000007e7fbb05de9dd577" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007e7fbb05de9dd577 Content-Type: text/plain; charset="UTF-8" Can timeout be set just on a query? Can we do the following? Begin do a query set timeout Exception report a record End; Regards, David --0000000000007e7fbb05de9dd577 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Can timeou= t be set just on a query?

Can we do the following?
=

Begin

do a query
set= timeout=C2=A0
Exception
report a record

=
End;

Regards,
David
--0000000000007e7fbb05de9dd577--