{"action":"opened","issue":{"url":"https://api.github.com/repos/brianc/node-postgres/issues/929","labels_url":"https://api.github.com/repos/brianc/node-postgres/issues/929/labels{/name}","comments_url":"https://api.github.com/repos/brianc/node-postgres/issues/929/comments","events_url":"https://api.github.com/repos/brianc/node-postgres/issues/929/events","html_url":"https://github.com/brianc/node-postgres/issues/929","id":129798274,"number":929,"title":"Question on multiple queries in single client?","user":{"login":"rdkgit","id":3226880,"avatar_url":"https://avatars.githubusercontent.com/u/3226880?v=3","gravatar_id":"","url":"https://api.github.com/users/rdkgit","html_url":"https://github.com/rdkgit","followers_url":"https://api.github.com/users/rdkgit/followers","following_url":"https://api.github.com/users/rdkgit/following{/other_user}","gists_url":"https://api.github.com/users/rdkgit/gists{/gist_id}","starred_url":"https://api.github.com/users/rdkgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdkgit/subscriptions","organizations_url":"https://api.github.com/users/rdkgit/orgs","repos_url":"https://api.github.com/users/rdkgit/repos","events_url":"https://api.github.com/users/rdkgit/events{/privacy}","received_events_url":"https://api.github.com/users/rdkgit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-29T15:30:25Z","updated_at":"2016-01-29T15:30:25Z","closed_at":null,"body":"Hi!\r\n\r\nNew to Node programming and trying to do something like this (pseudocode)\r\n\r\npg.connect\r\n   for (i=0; i<someNumber; i++) {\r\n        client.query(insert row into table)\r\n   }\r\n   done after all the client queries\r\n\r\nI don't know how many rows I will insert a prior as it depends on lots of factors.  I get the async nature of node and the pg library.  Whats the best way to do this?  Sorry if this is really a node question and not a pg question.\r\n\r\nThanks,\r\n\r\nBobby"}}