pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: hlinnaka (@hlinnaka) <noreply+hlinnaka@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #282: Hnsw iterator
Date: Thu, 05 Oct 2023 12:26:24 +0000
Message-ID: <gh-pgvector-pgvector-282-c1748795028@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-282@github.com>
References: <gh-pgvector-pgvector-282@github.com>

> > That happens to work, though.
> 
> Sorry, but why `UNION ALL` and not `UNION`? `UNION ALL` doesn't remove duplicates so for it order is not important.

The query has an ORDER BY. The planner chooses to implement that with MergeAppend over already-sorted outputs from two branches of the UNION ALL.

view thread (33+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-282-c1748795028@github.com>
Permalink:  ../gh-pgvector-pgvector-282-c1748795028@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox