And then postgres starts recovering the wal_files. But I don't want that.. as I don't need a up-to-date
Is the wal_files required anyway?
"...has a basebackup from the master" - the answer to your question depends greatly on the detail behind that sentence.
IIRC, unless you know that the data directory is consistent - because the database was offline at the time of the backup - at least some WAL will probably be required to bring the inconsistent backup data directory to a known good state (i.e., post-checkpoint).
David J.
I see...
as I'm recovering a slave and then turning it into a master, that's why the wal_files are required.