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.96) (envelope-from ) id 1vIxE7-004ZJM-24 for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Nov 2025 22:52:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vIxE5-00883j-0H for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Nov 2025 22:52:37 +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.96) (envelope-from ) id 1vIxE4-00883a-2I for pgsql-hackers@lists.postgresql.org; Tue, 11 Nov 2025 22:52:36 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vIxE2-007EQh-2R for pgsql-hackers@postgresql.org; Tue, 11 Nov 2025 22:52:36 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-64149f78c0dso247931a12.3 for ; Tue, 11 Nov 2025 14:52:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762901549; x=1763506349; darn=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=xfszVEm46T6ICMDLgER0JU2cfGucDl1V22LFZHBdPCY=; b=I3inNzoFIYFqz5BFQoMUxhXvq/tHvloucVQjho5Mpni3s58gIpPhfyi7Ie60XTAtS3 pU9/E2ldUIVI/ZyN7wnJfXJONIDBo3GoZXDGlOks0cwp4S8F7ActCx1RXDegwdkaKUNt FiCVrFGuclOAyVHTYGUpo7f6cnsOmSzV5vzKuM3gx5tohHLgb/PAns2fcWwiQWP+8Rr8 pkNEYEBZuBlQ4s/8Wyn+B56bRZe/lp/+Tpicv2DBKEoyc6zd+WH06pQldlBIEhLJQjpy /ltq82JShpXrB8v64GxKWU7GUq1e/tZ8g8xtOqrf2u4IvoDuCbPH5HYjfOUBvHl8QFkK Mubw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762901549; x=1763506349; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=xfszVEm46T6ICMDLgER0JU2cfGucDl1V22LFZHBdPCY=; b=uHEANG3JACjP9tQJ3qGnjxU7zV5ZjzXCKdBbdewokKj7T3C0vOQ812greX+Xdp4P+n etx4DK8NrKVzfd8SGOPEv3pVP2BAWJm6MuEvmNwn5QWewLaCpZi2ac2tcqqYGf0/AZFb eUw6emU9S5lO/GcZr5CFUpY9wCj6efMMofSBrOQSBh06RlozCAKByiCFgF4Ef6EfAhfy 7HB/ZjXQZxlez9vj3+Jh8XYZGGBFkTdeU35LAMIsDzmED92tMfKMqiiW32hqB5K/MG5Y 0ttxjZkL4MXOxkDAGscZ5HB80GQGJsCx8RvqaO+4uEmnbDaWvukaNcIfO3mqen4rcewJ Z1Nw== X-Forwarded-Encrypted: i=1; AJvYcCV9fKghAf3e2VV41XRkj32LfZkrGEYYzln5nGjUniQa4YHuUlo2iscUV+KJY3kNIBHT7NENPgoEQVDDIJFq@postgresql.org X-Gm-Message-State: AOJu0Yw0PPi5LHo7AN/2lp+rHaDXGjceTzO8Rai6/g9y8xtp4vkLanei KwR+eI4BrWcUnW0wqG/kAtugitBW0/6uiWhkQn+J7SVNK54sKp5ti0QEBhaGVLb/VpZQ8d+kE7q j5Uz+bbSlm+TB8BVdlffBSSybenlisFE= X-Gm-Gg: ASbGncv7QR6yLz0AGgTv3oc70NamNTEnW+FGFneSB3abXiQslltuc7TJeAXI+02Eobu Awfc/DdXJm8ITzpZQ2m7LxYSzpuqS18K5qcAj1veGw9YUItHDsaPnJTf2a7W5V0MMHhJ+4hsl7a s1Sg0hKL9YO4qebcLjSET+F6ltRSTTM1/DxZqjevjczkYHUtyoK+MZnfiJ1fb6WaoVgNWafj+YU 57X2MUi8mI8GwJEShPdV1Af2GdJYaonyB4hpJbQbq1e3t9MLwEkQRMvWFMddA== X-Google-Smtp-Source: AGHT+IG2PBQtaf5I44Jl6xnvDJ9FcJAlfBBF5Fad/FsO8L6qWHPKpZ8fT597Uheaz7tPH5+o4ApU67p8MNknCvvhXKM= X-Received: by 2002:a05:6402:20d1:20b0:640:7690:9993 with SMTP id 4fb4d7f45d1cf-6431a5363f4mr641716a12.19.1762901548658; Tue, 11 Nov 2025 14:52:28 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Melanie Plageman Date: Tue, 11 Nov 2025 17:52:17 -0500 X-Gm-Features: AWmQ_bnps5FzL5gE5b2ykPGkqheTZIV8a_U34GYBwuTDdAhXDb_FvzKBg4Bwdu8 Message-ID: Subject: Re: Trying out read streams in pgvector (an extension) To: Thomas Munro Cc: "Jonathan S. Katz" , pgsql-hackers 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, Nov 11, 2025 at 4:22=E2=80=AFPM Thomas Munro wrote: > > But for now, to fix pgvector's woes, I wonder if it might make sense > to call this a bug in v18, and back-patch the tiniest possible change. > Something like what I posted[2] in this thread almost two years ago. > I don't think it really affects any core code: we use > read_stream_reset() only in very minimal ways there (I could > elaborate), and it's quite arguable that the existing policy is wrong > for them too, but we'd need to confirm that and perhaps think about > other extensions that might be using it. If we are worried about regressing other extensions using read_stream_reset(), we could make the read stream reset which preserves the distance a different function in backbranches. - Melanie