pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #647: Restoring a backup suddenly breaks with CREATE INDEX ... USING hnsw
Date: Mon, 19 Aug 2024 19:04:31 +0000
Message-ID: <gh-pgvector-pgvector-647-c2297247048@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-647@github.com>
References: <gh-pgvector-pgvector-647@github.com>

@itinance Hard to answer without specific details on database size and transaction amount. However, what's happening is that your WAL is being recycled before the backup completes.

In the [`pg_basebackup`](https://www.postgresql.org/docs/current/app-pgbasebackup.html) docs, there are several WAL methods described (`X`) option:

* `n` - None
* `f` - fetches all the WAL at the end (which sounds like what you're using) - if [`wal_keep_size`](https://www.postgresql.org/docs/current/runtime-config-replication.html#GUC-WAL-KEEP-SIZE) is too small, then you'll encounter a message like the above
* `s` - stream, sends the WAL simultaneously with the backup.

If your backup strategy involves being able to restore to a point in time (point-in-time recovery), you'll want to keep the WAL with your backups. If your backup strategy is to just snapshot at a particular point of time ("standalone backup"), then you can use `n`.

(So yes, slightly out of scope for pgvector, but want to help you get in the right direction :smile:)

view thread (8+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-647-c2297247048@github.com>
Permalink:  ../gh-pgvector-pgvector-647-c2297247048@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