Emulating FS create file behavior in PostgreSQL
I got a files table: CREATE TABLE files ( id SERIAL PRIMARY KEY, path VARCHAR NOT NULL UNIQUE ); And I wanna write an sql transaction to emulate FS behavior when you tryna create a file: if a file with…