postgresql - Postgres replication with referenced files -


i have postgres database contains references files on filesystem. these references simple varchar values, understand there no referential integrity guaranteed:

create table user (     username varchar(50) primary key,     age integer,     template varchar(100) -- filepath of file on disk );  insert     user   (username,   age,   template)     values ('bob',      32,    '/templates/cool-template.html'); 

this fine, lack of referential integrity not concern. but go , set standard streaming replication (i follow tutorial on this page under "how use" heading).

what best way me replicate filesystem files (e.g. "cool-template.html") along postgres db content? don't want store files in database. aware can independently rsync files, there better way? postgres provide sort of hook trigger file backed up?

thanks help!


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -