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 1scQ08-0075uM-0j for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2024 13:49:52 +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 1scQ04-003cj0-QK for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2024 13:49:48 +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 1scQ04-003cip-Aq for pgsql-general@lists.postgresql.org; Fri, 09 Aug 2024 13:49:48 +0000 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1scQ01-003tNl-D2 for pgsql-general@lists.postgresql.org; Fri, 09 Aug 2024 13:49:46 +0000 Received: by mail-oi1-x230.google.com with SMTP id 5614622812f47-3dc16d00ba6so1378466b6e.0 for ; Fri, 09 Aug 2024 06:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723211384; x=1723816184; 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=GYLF6YsYpYibPwyI1yVVBodNcHN20bvlFZv5RnqXb2Q=; b=G1WOZ//eevEDdA4/phh07e+GVFtN0eomhG2DMm+M32hTsQXYN8Wstq0LQgTRv1hOke eGXgCka+dblYmIO1a1auea1sdgCVhkP7YMzCz4CjMl5dY6eCuTsP4HdNZqeDa47GHgPb Fa6sXbzUI8OGLZfDdEkw5+tMQEzaG+ChxoFYFkJKnMDgPmPFZAkYNtwz0OjBNABaX025 gc5KJfwbtr//dtC2Kg9vXQ50ftou3KdR/u2CLWMNNTQKUB5GvsR0/5O6/R5xpdHJYXqW +wCUzMjWvbIz6tYPU1LJSHb3SxmK7IWye5CLIuL0MHOzNzo7iW6RXiSaSO8ZMGMCywLM MoaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723211384; x=1723816184; 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=GYLF6YsYpYibPwyI1yVVBodNcHN20bvlFZv5RnqXb2Q=; b=gsyAjgENxgv+DSwBaCarNnBiqE1J3EC8MPeqwT5iE/mVVzp1gFkvSn0kVuQRrMHbe2 G8GI3EFfgiTgSeYCra9GsjU/vvoGL3LNUTEc0/8WQzvg0u+6EIkKevINZai4tbslVVRn j4ViO6bFCWUg0YpUSpkYkxM5dkAYws+0PGIdjIV2BnQ/TPQclAjUqS8r2F9buZ1S3DMq quo97jFabjkz0SqSQzgvnVmug9TBP4z66QzaVwqniJB+bf3/GpNvOvxhIK2VB4ed0PiL BJxoRHmG2SwZFJzS9cyuWbCbSTSdZ8XBloaN4gDFMirGJfeXZTpP4Q8HMBW9wZTg/o1R et/A== X-Gm-Message-State: AOJu0YwVif9uBjWq8do8yu5edKyUoeM777opFy0X+509Mu59s5oFRaqF yEIiabbh81dLmPOHERJD7tKYY89oW8Izye9LOUpHn0z6B85QE3Qaf84A5UCQNugMyCAEGXy7ttg PLpSzlY8M1aPVaWNhQKY7AAtGOG1O/R3r X-Google-Smtp-Source: AGHT+IHsZ6n/eBCtkZYHFy6MZXteq1YFvSAkoxO6zbK87n44yYA19zumSXkfjJeX/RJCDx5zM8BB+KXGnrQcikKE/8U= X-Received: by 2002:a05:6808:4490:b0:3d9:2b15:65d4 with SMTP id 5614622812f47-3dc41682c05mr2097087b6e.21.1723211384590; Fri, 09 Aug 2024 06:49:44 -0700 (PDT) MIME-Version: 1.0 References: <1340430.1722954664@sss.pgh.pa.us> In-Reply-To: From: Dominique Devienne Date: Fri, 9 Aug 2024 15:49:33 +0200 Message-ID: Subject: Re: libpq version macro to use or not PQsocketPoll To: Tom Lane Cc: pgsql-general@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 Tue, Aug 6, 2024 at 4:48=E2=80=AFPM Dominique Devienne wrote: > On Tue, Aug 6, 2024 at 4:31=E2=80=AFPM Tom Lane wrote= : > > Dominique Devienne writes: > > Indeed, that's an oversight, and there's a number of other things > > we added to libpq-fe.h between 16 and 17 that probably deserve > > their own LIBPQ_HAS symbols. Hi. Doesn't look like beta3 _has_ them (pun indented :)). Was probably too late for the beta3 release train. > We can have both. Also, version macros don't > multiply the way _HAS_ macros do, over time. I stumbled on such version macros today by chance. And pg_config.h seems available on both Windows and Linux. So I guess that's good enough for conditional compilation. From the old post I found, and your recent reply Tom, I got the impression these macros didn't exist. FWIW. --DD [ddevienne@acme include]$ sift VERSION pg*.h pg_config.h:#define PACKAGE_VERSION "16.1" pg_config.h:#define PG_MAJORVERSION "16" pg_config.h:#define PG_MAJORVERSION_NUM 16 pg_config.h:#define PG_MINORVERSION_NUM 1 pg_config.h:#define PG_VERSION "16.1" pg_config.h:#define PG_VERSION_NUM 160001 pg_config.h:#define PG_VERSION_STR "PostgreSQL 16.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-7), 64-bit"