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 1tH6b6-003Tlh-SB for pgsql-general@arkaria.postgresql.org; Fri, 29 Nov 2024 19:24:13 +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 1tH6b4-009zVE-3n for pgsql-general@arkaria.postgresql.org; Fri, 29 Nov 2024 19:24:11 +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 1tH6b2-009zTW-Gn for pgsql-general@lists.postgresql.org; Fri, 29 Nov 2024 19:24:10 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tH6az-000C9v-AJ for pgsql-general@lists.postgresql.org; Fri, 29 Nov 2024 19:24:09 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 74F2E114016F; Fri, 29 Nov 2024 14:24:03 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 29 Nov 2024 14:24:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1732908243; x=1732994643; bh=+xqSGLKRdC/Hftpqv4fhrlep5D35/sZ7S4J8wSpA4a8=; b= kX3OAGcfj8rmWXiHeR8Z3CHXViR6M9pZ09rUg5D1R8OrYmjyxHv+TasAJBHJc8tC gGwozd4tDdySo82XscII1UQHrEfkJ//ljxcRPdD1xxfYMZFDC96yeSMiYMlTyNwc JaYZLUnBuvrrubDEuaKhgPwi5c/xUxkX2q1WyF7Ug+t3laU5nl4tSAQCTCy2E2uB 46f9yJCBeGGJPgx2QutQIQsLJoZel2n0BG806+fhhY7YZtd76/nvV6/vH3tVmhUD Y56tGN67iJNit56WOlOMph6VAP/9bgceyuEV/cY8VCKv8kDgzLoJHIldcSMS/kp+ sgWVTlQwHtm3slkLEsOYRw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732908243; x= 1732994643; bh=+xqSGLKRdC/Hftpqv4fhrlep5D35/sZ7S4J8wSpA4a8=; b=P m5+czrLZyekfunOSVdfecMMPPYTvFYUsolC4U6UkfPqgrVIRbRCcxxvawgITrM4i XxSnD4WLPibPrVnsEVSpj96Ndn1epmCjlU4NsM7Uhb2wmqNa1oYC3mXHSQIAGmy3 TpFn5ovjjwBvxhyAM4Tv6uYZbnjAfR2wWMUIS9l5bYNookmdHdeBgjx7rCVERsyW 8TJMuWna/3Bh4SrmmeSWohYyQM32BLyfxb57o6D+hLYeUB/cTjfzIwhptFYus4xg YeUwMoLIYoGM0xN61i2mr+MzyySpNwT66oJIEEfwwOEOsLJki1tIXxPw82a3PGCU clKD/VWcJL4ndPSg/+95w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrheefgdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhevhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepueekhefhhffhfeehvddv ueegueejvdejkeeffeegleefiedvteejtdefveektdehnecuffhomhgrihhnpehpohhsth hgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsg gprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehikhhorhho thdtudesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlse hlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Nov 2024 14:24:01 -0500 (EST) Message-ID: Date: Fri, 29 Nov 2024 11:24:00 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Find out the version of the server To: Igor Korot References: <04031b39-c06a-4dc0-b354-1472dc0d39e2@aklaver.com> Content-Language: en-US Cc: "pgsql-general@lists.postgresql.org" From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Reply to list also Ccing list On 11/29/24 11:15 AM, Igor Korot wrote: > Hi, Adrian, > > On Fri, Nov 29, 2024 at 10:12 AM Adrian Klaver > wrote: >> >> Reuse it for what? > > For building.. > I got a linking errors of not finding sscanf() and sprntf() > when building my code. > > Googling revealed that MSVC made those inline after > MSVC 2010. > >> >>> >>> Is it possible to find what version of the server was used for the build? >>> >>> Im looking at the Windows Explorer timestamp, which gives me 4 September >>> 2017. >> >> At any point in time there are 5 supported versions of Postgres in play. >> Given that you could have also built against one of the unsupported >> versions a file timestamp will not help much. Though if you want to >> guess, version 10 was released October 5, 2017. It is plausible you >> built against a RC version in advance of the production release. > > Understood. > I also tried to open the explorer and go to Properties of the DLL built > > That dialog shows for src/interfaces/libpq/Release/ for the Detail tab > > Type: Application Extension > File Version: 9.6.2.17037 > Product name: PostgreSQL > Product version: 9.6.2 > > Can this info be trusted? >> >> libpq is backwards compatible, so why not try building against a current >> version of Postgres and see whats happens? > > Are you saying that the current version can connect even to 9.6.1 > server? (I have a really old Mac with the 9.6.1 version installed). Yes. The CLI client psql is based on libpq and from here: https://www.postgresql.org/docs/current/app-psql.html "If you want to use psql to connect to several servers of different major versions, it is recommended that you use the newest version of psql. Alternatively, you can keep around a copy of psql from each major version and be sure to use the version that matches the respective server. But in practice, this additional complication should not be necessary." If you have a new version of psql available connect to the 9.6.1 instance to verify. > > Thank you. > >> >>> >>> Thank you. >>> >>> P.s. please forgive for any typos as it's been written from the Android >>> phone. >>> >> >> -- >> Adrian Klaver >> adrian.klaver@aklaver.com >> -- Adrian Klaver adrian.klaver@aklaver.com