Skip to content

Instantly share code, notes, and snippets.

View leonardoo's full-sized avatar

leonardo orozco leonardoo

  • admios
  • Bogota, Colombia
  • 20:47 (UTC -05:00)
View GitHub Profile
for offset < count {
for i, _ := range []int{1, 2} {
new_offset := offset + (limit * i)
go doRequest(hostConn, sess, params, clientID, importLog, new_offset, limit, urls, &wg)
}
wg.Wait()
offset = offset + (limit * 2)
}
restore db without owner
pg_restore -U user -d db -1 db.sql -O --no-owner
psql -d db -f file.dump -U user -W -h host
sie db
SELECT
nspname || '.' || relname AS "relation",