title: Force a "lock" with Postgres and GO
body: <p>I am new to Postgres so this may be obvious (or very difficult, I am not sure).</p>
  
  <p>I would like to force a table or row to be "locked" for at least a few seconds at a time. Which will cause a second operation to "wait". </p>
  
  <p>I am using golang with "github.com/lib/pq" to interact with the database. </p>
  
  <p>The reason I need this is because I am working on a project that monitors postgresql. Thanks for any help. </p>