pgsql: Use the buffer cache when initializing an unlogged index.

2023-08-23 Thread Heikki Linnakangas
Use the buffer cache when initializing an unlogged index. Some of the ambuildempty functions used smgrwrite() directly, followed by smgrimmedsync(). A few small problems with that: Firstly, one is supposed to use smgrextend() when extending a relation, not smgrwrite(). It doesn't make much

pgsql: Use the buffer cache when initializing an unlogged index.

2023-08-23 Thread Heikki Linnakangas
Use the buffer cache when initializing an unlogged index. Some of the ambuildempty functions used smgrwrite() directly, followed by smgrimmedsync(). A few small problems with that: Firstly, one is supposed to use smgrextend() when extending a relation, not smgrwrite(). It doesn't make much