Are there any Arduino libraries that allow you to upload data directly to PostgreSQL?
The only solution to this question that I could find is a GitHub repository that hasn't been touched in several years called, SimplePgSQL. Feel free to add a better answer if you are able to find something more current. More current information would be useful!
https://github.com/ethanak/SimplePgSQL