Re: [PATCH] Refactor SLRU to always use long file names - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: [PATCH] Refactor SLRU to always use long file names
Date
Msg-id CAJ7c6TPrdgo8YD0-YPbdiRXQDHUCJ66OdhKgn+SJeQcmrB3s_g@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Refactor SLRU to always use long file names  (Aleksander Alekseev <aleksander@timescale.com>)
List pgsql-hackers
Hi again,

Just a quick follow-up.

> (*) BTW I noticed a mistake in the commented code. The condition
> should be `>=`, not `<`, i.e:
>
> ```
>     if(new_cluster.controldata.cat_ver >= SLRU_SEG_FILENAMES_CHANGE_CAT_VER)
>         return;
> ```

The concentration of caffeine in my blood is a bit low right now. I
suspect I may need to re-check this statement with a fresh head.

Also it occured to me that as a 4th option we could just get rid of
this check. Users however will pay the price every time they execute
pg_upgrade so I doubt we are going to do this.

-- 
Best regards,
Aleksander Alekseev



pgsql-hackers by date:

Previous
From: "Dickson S. Guedes"
Date:
Subject: Re: Allowing pg_recvlogical to create temporary replication slots
Next
From: "David E. Wheeler"
Date:
Subject: Re: RFC: Additional Directory for Extensions