title: How to store file in a disk and reference it in Postgres database and sync up?
body: <p>I want to store as a file in server. It may be in the disk and store the path of that file in Postgres table. I know storing the file in the disk in no more Sync up in the Postgres. It may happen that someone deletes that file on the disk and my column still referencing it. So, I go deep down and find that <strong>Postgres has some feature which allows users to save the file in the disk and create a symbolic link and stored in the database itself which allows to sync up</strong>. It also works as a backup. <strong>I also want to control the file from accessing it based on some condition</strong>. How can we do it in Postgres? Any help is appreciated.</p>