# Node-Red save to Postgres

**URL:** <https://discourse.nodered.org/t/node-red-save-to-postgres/75974>\
**Category:** General\
**Tags:** database, mqtt\
**Created:** [2 March 2023 04:24 UTC](https://discourse.nodered.org/t/node-red-save-to-postgres/75974 "2023-03-02T04:24:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Marc123](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marc123/32/76924_2.png) [@Marc123](https://discourse.nodered.org/u/Marc123)\
**Post date:** [2 March 2023 13:06 UTC](https://discourse.nodered.org/t/node-red-save-to-postgres/75974/3 "2023-03-02T13:06:48Z")

</div>

The postgres node expects sql to be in msg.query

Also, there are multiple postgres nodes in the palette manager, the only one I've found to work reliably is  
"node-red-contrib-postgresql"

---

_[View the full topic](https://discourse.nodered.org/t/node-red-save-to-postgres/75974)._
