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 1rO6om-001Pz0-LD for pgsql-committers@arkaria.postgresql.org; Fri, 12 Jan 2024 01:58: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 1rO6oj-00Gdb5-5Y for pgsql-committers@arkaria.postgresql.org; Fri, 12 Jan 2024 01:58:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rO6oi-00Gdax-Rr for pgsql-committers@lists.postgresql.org; Fri, 12 Jan 2024 01:58:40 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rO6og-0016qx-0L for pgsql-committers@lists.postgresql.org; Fri, 12 Jan 2024 01:58:40 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2cd1aeb1bf3so55525961fa.1 for ; Thu, 11 Jan 2024 17:58:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705024717; x=1705629517; 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=CuhdeRnh/vvv1Ngr54qtYviu10kob/da+UPVbeT1BSc=; b=Q0UMFX6AvB29BcQvc3Uvku8xAtFaQr7BB84VE9VdWgLzPD/VdCED5uvY7Oaw5DXvVL GkRsHg1wMthP2aC9H9wUAJXO3/Vs8ID3l3l7l34FV/PsO7hXGQYPI5B6HrIXJwirHNQ+ ofsYRG2Q5QV1dI9msKpnf55n0Fv06Zhzy3xDMqjlsDPKweGKN3uLTeP8x76Y624bNhNn u/QWXnxMnNLm1pm5Ud4UUCBco4OgwBN0uvAJqVcRbNQikXewRU4iDIuovxo91LQ/2NZA +aDpWV8MOSK+8I1fdNqj9D8V9m5HTK+pu2qbIfIpAbYyULeAElApwCV08a/WqO85kURH UprA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705024717; x=1705629517; 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=CuhdeRnh/vvv1Ngr54qtYviu10kob/da+UPVbeT1BSc=; b=lAPqAdWbjhF65jQnb0kI16EbtQJKJbPyUkZJj7YoR+P5oESZQJCF5i1rSQ2LTFYLVz oGbZSndVVM3y4aByOh4XamS+kOpPDWXT3rezmlOSqrSWkXY5hEbRx+UHCjQtgnfbwD3h GB8vl+nrxBmFweFhB3p6QoB3QHd0aE5KAe3j1sgqOkmW0Ohz5Rg2rep+QA3sGOFPIush X0/bQLkGAkPx26Lfptn+JasdxE1891aACTQWXqfphbIMGq4lv6RmszCqPOIvc7ITGl5O cM2MRY8XYme1gXECndvWh1I6qfztgOVzrfFQ6qHtb5Sr6Sl8mPCOgAKrB6927gO04dKZ OMsg== X-Gm-Message-State: AOJu0YyoD+wGicqNxNz08tmOPrrYOXD1BsnJIlWVVdhI1RTw02Lx79aX NqZL7AI2ba1TsJHdTrEvPZFG9Q/BsE0LB5s72xzBjUdmaB4= X-Google-Smtp-Source: AGHT+IEy/JScJLmfuXPTDgVju94YYBlTEOZzsy2lMWNySM7f9TzzpnHcL/FkQFUU+5WNnQOzEApYYJFEBPpZkJPPSek= X-Received: by 2002:a2e:8096:0:b0:2cc:d4f3:aa3d with SMTP id i22-20020a2e8096000000b002ccd4f3aa3dmr338536ljg.11.1705024716765; Thu, 11 Jan 2024 17:58:36 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bharath Rupireddy Date: Fri, 12 Jan 2024 07:28:26 +0530 Message-ID: Subject: Re: pgsql: Add support event triggers on authenticated login To: Alexander Korotkov Cc: 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 Mon, Oct 16, 2023 at 5:49=E2=80=AFAM Alexander Korotkov wrote: > > Add support event triggers on authenticated login Hi, I'm seeing a compiler warning with CFLAGS -O3 but not with -O2. In file included from dbcommands.c:20: dbcommands.c: In function =E2=80=98createdb=E2=80=99: ../../../src/include/postgres.h:104:16: warning: =E2=80=98src_hasloginevt= =E2=80=99 may be used uninitialized in this function [-Wmaybe-uninitialized] 104 | return (Datum) (X ? 1 : 0); | ^~~~~~~~~~~~~~~~~~~ dbcommands.c:683:25: note: =E2=80=98src_hasloginevt=E2=80=99 was declared h= ere 683 | bool src_hasloginevt; | ^~~~~~~~~~~~~~~ The configure command I used is ./configure --prefix=3D$PWD/inst/ CFLAGS=3D"-ggdb3 -O3" > install.log && make -j 8 install > install.log 2>&1 &: CONFIGURE =3D '--prefix=3D/home/ubuntu/postgres/inst/' 'CFLAGS=3D-ggdb3 -O= 3' CC =3D gcc CPPFLAGS =3D -D_GNU_SOURCE CFLAGS =3D -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=3Dvla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3D3 -Wcast-function-type -Wshadow=3Dcompatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=3Dstandard -Wno-format-truncation -Wno-stringop-truncation -ggdb3 -O3 CFLAGS_SL =3D -fPIC The compiler version is: gcc --version gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. --=20 Bharath Rupireddy PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com