Saving Documents in PG vs File system

Reg Paling reg.paling at
Wed Nov 14 14:46:47 EST 2018

Hi Mike,

My application stores documents in the file system.  On windows it works 
mostly without a problem but on macOS problems pop up regularly across 
the user base: permissions needing to be repaired, folder structures 
getting corrupted and so on.  I could not believe it during the first 
years after I took over the app, but the only conclusion based on my 
experience is that macOS is flakey.  Newer versions may be slightly less 
so but nonetheless all versions are flakey.  Some servers appear to be 
more vulnerable than others.  Attempts by IT support to rebuild and 
repair the disks don't work, but then the client buys a new server and 
the problems (sometimes) largely go away.

So I have been thinking of going in the opposite direction!  I like your 
idea of the temp and permanent databases.  I haven't done anything with 
S3 but my experience of other services from AWS is that they are indeed 
a beautiful thing as Andrew says.


On 15/11/18 2:25 am, Michael Matthews via omnisdev-en wrote:
> Hello All,
> A question for those of you who store documents in your Omnis system.  We currently do, and we have a separate DB for the storage, and keep the metadata in the main database.
> However, in certain cases, the PG database size is now over 100gb when exported.  And 99% of that data is static, so a waste of time in backing it up etc every day.
> 1	I could split the database into 2 parts as well, 1 for new items, which will periodically move items to the 2nd archive database.
> 2	But I want to explore storing the files in the file system, and passing them to the user when asked for.  Can PostGres save files locally, and then read team and send them back to a user within a SQL call?
> 3	I also remember Marten Verhoven showing how he uses Symbolic links to files that would normally be hidden AND inaccessible unless given.
> So what do others do at this point with numbers of docs exceeding 100Gb now?
> Thank you
> Mike
>            <>
>   <>  <>  <>  <>		
> Mike Matthews
> omnis at <mailto:omnis at>
> Lineal Software Solutions
> 01271 375999
> Commercial House, The Strand
> Barnstaple, Devon, EX31 1EU
> <>
>   <>  <>  <>  <>  <>  <>  <>  <>  <>  <>
> _____________________________________________________________
> Manage your list subscriptions at
> Start a new message -> mailto:omnisdev-en at

More information about the omnisdev-en mailing list