We have a small device (BananaPi) that gathers lots of data from multiples sensors with different procotols.
Everything is fine so far but we want to export the data on a bigger server to be able to process it and build a user interface (monitoring, alerts, analytics ...)
We could directly send the data into the central PostgreSQL database with some sort of API but I was wondering if it could be a good idea to store it on a local Postgresql instance and use streaming replication to centralize the data ?
If so, is it possible to tell Postgresql to stream replicate content and erase it on the device once it is propagated on the server (to free space) ?
Thanks