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 1t96sF-007onb-8U for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2024 18:04:50 +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 1t96sC-000j1g-Ki for pgsql-general@arkaria.postgresql.org; Thu, 07 Nov 2024 18:04:49 +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 1t96sB-000izO-MP for pgsql-general@lists.postgresql.org; Thu, 07 Nov 2024 18:04:48 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t96s7-000iMQ-81 for pgsql-general@postgresql.org; Thu, 07 Nov 2024 18:04:47 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 5B4FC13801CB; Thu, 7 Nov 2024 13:04:42 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 07 Nov 2024 13:04:42 -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=fm2; t=1731002682; x=1731089082; bh=3RSTZhK5IvfyqVFG3HTQ9ctu7DHYW2gYLao3eNuoyGw=; b= gfgzAGvlI1rbE1+3p2JzwTDFuyk9S5iPxhmmXlOor+PN9STxsRXjdNgyigJI5GbQ rV4SQ9M+G5z/lVhlDMekep/9QT+Yc3q7jI3PENkgO3TmXDwGt9HL8dJzUWnWm4Bx xmRQD/q52lSus4WoOEDSS85SFstcKarFD4YtWXy2nFyf6Ip3pYisj5q4Rt9soTCp LMCtZ/HebKOcb1sZfzQ61PbwrfZIrWRjMfhXhkvZQODEzB14mhVbDVDP+M9AnmVb e6BFpnZQ4x6Mtlow7J62Huy/tSGxCMU0uXZIOe8hqut9SMWMxFAqcrzMYPOIvFNC ybTU1jSnpqc+OVIbNHdpOg== 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=fm3; t=1731002682; x= 1731089082; bh=3RSTZhK5IvfyqVFG3HTQ9ctu7DHYW2gYLao3eNuoyGw=; b=G e1BWMZiS0P9jhc7XMQJclXfY3aRGKUjqFpj+P3SRrDxEHvznB30J6aFw0H9lFsni uaWWa9VqjfsAdya9qcp8jPGtlVb3aCQ/LaYvgDmfYVibsXKmnf+nk4Ww1vVxNQUV 1Psrwwkrr1ltlYr1MYgaGmvpHr3QqYWnL3OsQYzkI1W1rf1UNiaeGRO9CmoA2GRk aA4lFdG2mfLKDu6/J/gHcSQzADSfaKEnHWJMiNLL1Chm3HaqSMPW0IIMzf9/LZQF hdKxtGokZdYd3xwLqBj+7UqeEEQ3Bh2y8PLgYuNrkHdVNPHaWiiSQpmG+ZyAq3yo yAaaShZMlA4XlfWGQe5Lg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtdeggddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepgfdufeekhfevfeelveei ueevhedvuddukeduvddvlefhueeuieejtdeuvdevvdeunecuffhomhgrihhnpehpohhsth hgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsg gprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguuggvvhhi vghnnhgvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggrnhhivghlsehmrghnihhtoh huqdhmrghilhdrohhrghdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehpohhs thhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 7 Nov 2024 13:04:41 -0500 (EST) Message-ID: <5730b804-3544-4774-92dd-49954b720ac3@aklaver.com> Date: Thu, 7 Nov 2024 10:04:40 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: About the stability of COPY BINARY data To: Dominique Devienne , Daniel Verite Cc: pgsql-general@postgresql.org References: <1214b740-22de-4151-a3c8-e93e3385c0da@manitou-mail.org> Content-Language: en-US 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 On 11/7/24 09:55, Dominique Devienne wrote: > On Thu, Nov 7, 2024 at 6:39 PM Daniel Verite wrote: >> Dominique Devienne wrote: >>> Also, does the code for per-type _send() and _recv() functions >>> really change across versions of PostgreSQL? How common are >>> instances of such changes across versions? Any examples of such >>> backward-incompatible changes, in the past? >> >> For the timestamp types, I think these functions were >> sending/expecting float8 (before version 7.3), and then float8 or >> int64 depending on the server configuration up until 9.6, and since >> then int64 only. >> The same for the "time" field of the interval type. >> There is still an "integer_datetimes" GUC reflecting this. > > Thanks. So it did happen in a distant past. > Anything below 14 is of no concern to me though. > So again, it does sound like changes are unlikely. Yeah that is implied by: https://www.postgresql.org/docs/current/pgupgrade.html "Major PostgreSQL releases regularly add new features that often change the layout of the system tables, but the internal data storage format rarely changes. " The COPY warning is there as heads up that it is a possibility. > > And I haven't seen anything not network-byte-order, > as far architecture is concerned. > > -- Adrian Klaver adrian.klaver@aklaver.com