PostgreSQL node Queue value

Hello guys, how to access value of Queue of postgres node?
image

Or maybe a better question, how to batch import the data into postgres in nodered (array of objects) ?

Thanks!

Have you tried the status node, it may pick it up.

Thanks for advice,
I solved the problem via going into:

/home/ubuntu/.node-red/node_modules/node-red-contrib-postgresql
Open file postgresql.js
and before the line
send(msg);

I added:
msg.queue = nbQueue;

Now every postgresSQL gives desired info in msg.queue.

Or, instead of hacking the code (which you will lose if the node is ever updated), you could use a status node (like @E1cid suggested)?

Better still, you could raise a pull request against the repository so that everyone benefits?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.