Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rl5lt-00Ha7H-C1 for pgsql-committers@arkaria.postgresql.org; Fri, 15 Mar 2024 11:30:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rl5lr-008PYX-6j for pgsql-committers@arkaria.postgresql.org; Fri, 15 Mar 2024 11:30:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rl5lq-008PYN-Tz for pgsql-committers@lists.postgresql.org; Fri, 15 Mar 2024 11:30:43 +0000 Received: from mail-yb1-xb35.google.com ([2607:f8b0:4864:20::b35]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rl5ln-004dPy-Re for pgsql-committers@lists.postgresql.org; Fri, 15 Mar 2024 11:30:42 +0000 Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-dc238cb1b17so1983009276.0 for ; Fri, 15 Mar 2024 04:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710502240; x=1711107040; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MID2YPrx9G7WzZhsmnVGnfcX0hzSPDQ98A5d0TKRgIo=; b=lCRMBdE92nLTTbx3xVnDGrc5erqnKkD8GGZqe8diRxStgqlT04KSGyV64gauBldskR Yg6pq8xtT1xoWeHhEByT0+Tr3Iv35twINrHE/b3mePyGJdPj9EJZ00Aks7FWbLygfYQI oFJUICrbPTJRbd20Q3sQAvUS48pKy1gTYR/l2oxpiUCGeJHpE9YnbIYDl2tHckhP+/en hGPBPRvmj6ZrAcGQjyeHqw2SWbZX9CQJhfrY51s2/bjx6Ph7nQl7+ielC5bs/4ldMCSq 7WshvxBmbR8BqlvyEC1HdMT69ooKgOzJci8uYH9aRNKN1ZaqJzaumxWTi6Lyko2/l9+h WK+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710502240; x=1711107040; h=content-transfer-encoding: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=MID2YPrx9G7WzZhsmnVGnfcX0hzSPDQ98A5d0TKRgIo=; b=RwCr1hF21fkSnCwc3XUhty+SXlvYaWUyQDdZL85HefWxg3hHkGeFmHGuh8CU09kaDX y7fS0f8Md2Qjxj7RvCKIXHEXUYSuCPM5AGHCZb2Q5jx20MjXBmUiWQFL7OY3zWjfTjTy d+szgMT1S5s/QOzKNLUux93KUTNqlozB79IjSl8v/2c19gfkyIuDmXzF3zQ31jrB7wWM KkqjIAnzHNISvDnq/O6r5EBzfJ25S+YqUz9TRPITXnW8+Nb8PRM2TiQdOEyIn9w4FLtY NffYHPnBLtr8Jvt72vxm4euN1Sl9/zKVxUE8sg4Z5WCNLE/Xi30ai6ETFTwb5qx6rwUE 8bnA== X-Forwarded-Encrypted: i=1; AJvYcCWEoJaG8+lsNyektjMeQ9Gu6+eFeaPY5AHqCHXTLKhV9R3XNWiu6MjatE6HKtQvc99rzVqYGt2yKKPZuJ+OxRatZZNFVNTDJVdSTDpTeUjM4KSq4e7i X-Gm-Message-State: AOJu0YyjjBZsVN2EBjfLkCQn9H0fWTKTVbXv9/Dx/SxwtxKwxkDLnttZ PsGSzZdrVytKktdkB8eCktWPe++7Z25PmKpp/2MDkNPoColYZzBUmSue+yro9YiZ0Somq3PgmDL 982TUUi532y93HwkdwTLjxuYbeJo= X-Google-Smtp-Source: AGHT+IEn+3k21+ljjgivGyI6AYvKiqI6x2byAk3JADDhzdEIW5d5QkZ2OOYGbwh2OtJLPyzlAHlJrrmXLbP5gapcHRk= X-Received: by 2002:a25:6403:0:b0:dcf:3ef1:1997 with SMTP id y3-20020a256403000000b00dcf3ef11997mr1749522ybb.1.1710502240171; Fri, 15 Mar 2024 04:30:40 -0700 (PDT) MIME-Version: 1.0 References: <20240315.104235.1835366724413653745.horikyota.ntt@gmail.com> <2D5B6D1F-11D2-4306-B006-4FE53D5F0E6A@yandex-team.ru> <91C963B5-63CC-4FAE-9119-E226CF84112A@yandex-team.ru> In-Reply-To: <91C963B5-63CC-4FAE-9119-E226CF84112A@yandex-team.ru> From: Alexander Korotkov Date: Fri, 15 Mar 2024 13:30:28 +0200 Message-ID: Subject: Re: pgsql: Add TAP tests for timeouts To: "Andrey M. Borodin" Cc: Michael Paquier , Kyotaro Horiguchi , akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Mar 15, 2024 at 1:27=E2=80=AFPM Andrey M. Borodin wrote: > > > On 15 Mar 2024, at 15:44, Alexander Korotkov wro= te: > > > > We loop in the interrupt checking, given that the injection point hand= ler checks for interrupts internally. I propose to unset the timeout flag = before the injection point (see the attached patch). > > Oh, cool. > As far as I understand, this is only necessary for the test with injectio= n point. > So, maybe unset it only when injection points are enabled? Something like= this is already used in GIN. > > #ifdef USE_INJECTION_POINTS > .... > #endif Maybe, but do you see any negative side effects of the unconditionally unset of flags? If not, I would prefer to keep the code simple. ------ Regards, Alexander Korotkov