#!/usr/bin/env ruby
require 'postgres'
$:.unshift << ',' << '..' << 'lib' << File.join('..', 'lib')
require 'pglock'

$pgconn = PGconn.new
relname = '__sample_a__'


# get a lock on it
PgLock.unlock :relname => relname

# drop the table
begin
  $pgconn.exec %Q| drop table #{ relname } |
rescue Exception => e
end
