pgAdmin sangat lambat pada operasi jarak jauh apa pun


10

Saya menjalankan kueri ini dari pgAdmin lokal saya yang menghubungkan dari jarak jauh ke server dev kami:

select * from users order by random() limit 1;

itu menggantung selama 17 detik dan menunjukkan

Total query runtime: 148 ms. 
1 row retrieved.

itu juga hang pada operasi apa pun: bahkan mengklik kanan pada tabel.

Setelah itu saya terhubung melalui RDP dan menjalankan kueri yang sama di sana dalam versi pgAdmin yang sama yang langsung menampilkan hasilnya query time: 32 ms.

Lalu saya menjalankan kueri dari pgAdmin lokal saya lagi:

Total query runtime: 337 ms.
1 row retrieved.

Saya memiliki ping 130 ms ke server. Kecepatan koneksi harus lebih dari cukup karena saya dapat mengunggah file melalui FTP di sana dengan cukup cepat.

Permintaan yang sama ketika dijalankan dengan psql lokal saya selesai dalam beberapa detik dengan waktu koneksi disertakan.

Permintaan yang sama di pgAdmin lokal saya dengan salinan db lokal saya selesai juga dengan segera.

Versi pgAdmin adalah 1.20.0. Diperiksa juga pada 1.22 terbaru - masih sama.

Apa yang bisa saya lakukan untuk mempercepat pgAdmin?

Harap dicatat bahwa psql berfungsi dengan baik, saya tidak melihat latensi yang sama di sana.

log pgAdmin untuk menjalankan query 17 detik:

2016-02-06 16:18:03 INFO   : queueing : select * from users order by random() limit 1;
2016-02-06 16:18:03 QUERY  : Thread executing query (1:server): select * from users order by random() limit 1;
2016-02-06 16:18:03 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:03 QUERY  : Query result: integer
2016-02-06 16:18:03 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:03 QUERY  : Query result: 23
2016-02-06 16:18:03 QUERY  : Scalar query (server): SELECT format_type(oid,259) as typname FROM pg_type WHERE oid = 1043
2016-02-06 16:18:03 QUERY  : Query result: character varying(255)
2016-02-06 16:18:03 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1043
2016-02-06 16:18:03 QUERY  : Query result: 1043
2016-02-06 16:18:03 QUERY  : Scalar query (server): SELECT format_type(oid,259) as typname FROM pg_type WHERE oid = 1043
2016-02-06 16:18:03 QUERY  : Query result: character varying(255)
2016-02-06 16:18:03 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1043
2016-02-06 16:18:03 QUERY  : Query result: 1043
2016-02-06 16:18:03 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:04 QUERY  : Query result: integer
2016-02-06 16:18:04 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:04 QUERY  : Query result: 23
2016-02-06 16:18:04 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:04 QUERY  : Query result: integer
2016-02-06 16:18:04 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:04 QUERY  : Query result: 23
2016-02-06 16:18:04 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:04 QUERY  : Query result: timestamp without time zone
2016-02-06 16:18:04 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:04 QUERY  : Query result: 1114
2016-02-06 16:18:04 QUERY  : Scalar query (server): SELECT format_type(oid,0) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:04 QUERY  : Query result: timestamp(0) without time zone
2016-02-06 16:18:04 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:04 QUERY  : Query result: 1114
2016-02-06 16:18:04 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:05 QUERY  : Query result: integer
2016-02-06 16:18:05 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:06 QUERY  : Query result: 23
2016-02-06 16:18:06 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:06 QUERY  : Query result: integer
2016-02-06 16:18:06 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:06 QUERY  : Query result: 23
2016-02-06 16:18:06 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:07 QUERY  : Query result: integer
2016-02-06 16:18:07 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:07 QUERY  : Query result: 23
2016-02-06 16:18:07 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:07 QUERY  : Query result: boolean
2016-02-06 16:18:07 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:07 QUERY  : Query result: 16
2016-02-06 16:18:07 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 20
2016-02-06 16:18:07 QUERY  : Query result: bigint
2016-02-06 16:18:07 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=20
2016-02-06 16:18:07 QUERY  : Query result: 20
2016-02-06 16:18:07 QUERY  : Scalar query (server): SELECT format_type(oid,259) as typname FROM pg_type WHERE oid = 1043
2016-02-06 16:18:07 QUERY  : Query result: character varying(255)
2016-02-06 16:18:07 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1043
2016-02-06 16:18:08 QUERY  : Query result: 1043
2016-02-06 16:18:08 QUERY  : Scalar query (server): SELECT format_type(oid,259) as typname FROM pg_type WHERE oid = 1043
2016-02-06 16:18:08 QUERY  : Query result: character varying(255)
2016-02-06 16:18:08 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1043
2016-02-06 16:18:08 QUERY  : Query result: 1043
2016-02-06 16:18:08 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:08 QUERY  : Query result: timestamp without time zone
2016-02-06 16:18:08 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:08 QUERY  : Query result: 1114
2016-02-06 16:18:08 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:08 QUERY  : Query result: integer
2016-02-06 16:18:08 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:08 QUERY  : Query result: 23
2016-02-06 16:18:08 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:09 QUERY  : Query result: integer
2016-02-06 16:18:09 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:09 QUERY  : Query result: 23
2016-02-06 16:18:09 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:09 QUERY  : Query result: boolean
2016-02-06 16:18:09 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:09 QUERY  : Query result: 16
2016-02-06 16:18:09 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:09 QUERY  : Query result: integer
2016-02-06 16:18:09 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:09 QUERY  : Query result: 23
2016-02-06 16:18:09 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:09 QUERY  : Query result: integer
2016-02-06 16:18:09 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:09 QUERY  : Query result: 23
2016-02-06 16:18:09 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:10 QUERY  : Query result: boolean
2016-02-06 16:18:10 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:10 QUERY  : Query result: 16
2016-02-06 16:18:10 QUERY  : Scalar query (server): SELECT format_type(oid,259) as typname FROM pg_type WHERE oid = 1043
2016-02-06 16:18:10 QUERY  : Query result: character varying(255)
2016-02-06 16:18:10 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1043
2016-02-06 16:18:10 QUERY  : Query result: 1043
2016-02-06 16:18:11 QUERY  : Scalar query (server): SELECT format_type(oid,259) as typname FROM pg_type WHERE oid = 1043
2016-02-06 16:18:11 QUERY  : Query result: character varying(255)
2016-02-06 16:18:11 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1043
2016-02-06 16:18:11 QUERY  : Query result: 1043
2016-02-06 16:18:11 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:11 QUERY  : Query result: timestamp without time zone
2016-02-06 16:18:11 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:12 QUERY  : Query result: 1114
2016-02-06 16:18:12 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:12 QUERY  : Query result: timestamp without time zone
2016-02-06 16:18:12 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:12 QUERY  : Query result: 1114
2016-02-06 16:18:12 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:12 QUERY  : Query result: timestamp without time zone
2016-02-06 16:18:12 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:12 QUERY  : Query result: 1114
2016-02-06 16:18:12 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:12 QUERY  : Query result: boolean
2016-02-06 16:18:12 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:12 QUERY  : Query result: 16
2016-02-06 16:18:12 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:12 QUERY  : Query result: integer
2016-02-06 16:18:12 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:13 QUERY  : Query result: 23
2016-02-06 16:18:13 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:13 QUERY  : Query result: integer
2016-02-06 16:18:13 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:13 QUERY  : Query result: 23
2016-02-06 16:18:13 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:13 QUERY  : Query result: boolean
2016-02-06 16:18:13 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:13 QUERY  : Query result: 16
2016-02-06 16:18:13 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:13 QUERY  : Query result: integer
2016-02-06 16:18:13 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:13 QUERY  : Query result: 23
2016-02-06 16:18:13 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:13 QUERY  : Query result: integer
2016-02-06 16:18:13 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:14 QUERY  : Query result: 23
2016-02-06 16:18:14 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:14 QUERY  : Query result: boolean
2016-02-06 16:18:14 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:14 QUERY  : Query result: 16
2016-02-06 16:18:14 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:14 QUERY  : Query result: integer
2016-02-06 16:18:14 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:14 QUERY  : Query result: 23
2016-02-06 16:18:14 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:15 QUERY  : Query result: timestamp without time zone
2016-02-06 16:18:15 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:15 QUERY  : Query result: 1114
2016-02-06 16:18:15 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:15 QUERY  : Query result: integer
2016-02-06 16:18:15 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:16 QUERY  : Query result: 23
2016-02-06 16:18:16 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:16 QUERY  : Query result: integer
2016-02-06 16:18:16 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:16 QUERY  : Query result: 23
2016-02-06 16:18:16 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:16 QUERY  : Query result: integer
2016-02-06 16:18:16 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:16 QUERY  : Query result: 23
2016-02-06 16:18:16 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:16 QUERY  : Query result: integer
2016-02-06 16:18:16 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:16 QUERY  : Query result: 23
2016-02-06 16:18:16 QUERY  : Scalar query (server): SELECT format_type(oid,259) as typname FROM pg_type WHERE oid = 1043
2016-02-06 16:18:17 QUERY  : Query result: character varying(255)
2016-02-06 16:18:17 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1043
2016-02-06 16:18:17 QUERY  : Query result: 1043
2016-02-06 16:18:17 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:17 QUERY  : Query result: integer
2016-02-06 16:18:17 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:17 QUERY  : Query result: 23
2016-02-06 16:18:17 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:17 QUERY  : Query result: boolean
2016-02-06 16:18:17 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:17 QUERY  : Query result: 16
2016-02-06 16:18:17 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:17 QUERY  : Query result: integer
2016-02-06 16:18:17 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:18 QUERY  : Query result: 23
2016-02-06 16:18:18 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:18 QUERY  : Query result: integer
2016-02-06 16:18:18 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:18 QUERY  : Query result: 23
2016-02-06 16:18:18 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:18 QUERY  : Query result: integer
2016-02-06 16:18:18 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:18 QUERY  : Query result: 23
2016-02-06 16:18:18 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:18 QUERY  : Query result: timestamp without time zone
2016-02-06 16:18:18 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:18 QUERY  : Query result: 1114
2016-02-06 16:18:18 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 23
2016-02-06 16:18:18 QUERY  : Query result: integer
2016-02-06 16:18:18 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=23
2016-02-06 16:18:19 QUERY  : Query result: 23
2016-02-06 16:18:19 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:19 QUERY  : Query result: boolean
2016-02-06 16:18:19 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:19 QUERY  : Query result: 16
2016-02-06 16:18:19 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:19 QUERY  : Query result: boolean
2016-02-06 16:18:19 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:19 QUERY  : Query result: 16
2016-02-06 16:18:19 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:19 QUERY  : Query result: timestamp without time zone
2016-02-06 16:18:19 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:19 QUERY  : Query result: 1114
2016-02-06 16:18:19 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 20
2016-02-06 16:18:19 QUERY  : Query result: bigint
2016-02-06 16:18:19 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=20
2016-02-06 16:18:20 QUERY  : Query result: 20
2016-02-06 16:18:20 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 16
2016-02-06 16:18:20 QUERY  : Query result: boolean
2016-02-06 16:18:20 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=16
2016-02-06 16:18:20 QUERY  : Query result: 16
2016-02-06 16:18:20 QUERY  : Scalar query (server): SELECT format_type(oid,-1) as typname FROM pg_type WHERE oid = 1114
2016-02-06 16:18:20 QUERY  : Query result: timestamp without time zone
2016-02-06 16:18:20 QUERY  : Scalar query (server): SELECT CASE WHEN typbasetype=0 THEN oid else typbasetype END AS basetype
  FROM pg_type WHERE oid=1114
2016-02-06 16:18:20 QUERY  : Query result: 1114

Apakah selalu menggantung?
dezso

@dezso kapan saja saya menekan F5 untuk menjalankan kembali kueri. apakah itu cukup untuk "selalu"?
Vlad

Jawaban:


6

Ekstrak dari pgadmin.logmenunjukkan bahwa untuk setiap kolom output dari hasil, pgadminmengeksekusi dua kueri terhadap katalog, satu untuk mendapatkan nama yang diformat dari jenis dari itu oid, yang lain untuk mendapatkan tipe basis potensial.

Dalam ekstrak Anda, jika saya menghitung benar, jumlah total dari pertanyaan seperti itu tampaknya 106.

Dari waktu ping 148 ms, mari kita asumsikan bahwa waktu minimum untuk pulang pergi ke server adalah 148 ms. Jadi waktu minimum yang diambil oleh set pertanyaan ini adalah 148 x 106 = 15688 ms, atau15.6 s

Di sisi lain, psqlklien baris perintah tidak melakukan semua pertanyaan ini, sehingga dapat diharapkan telah menyelesaikan setidaknya beberapa 15.6detik sebelum pgadmin.

Saya tidak mengetahui adanya opsi dalam pgadmin untuk menonaktifkannya, Anda mungkin ingin bertanya kepada pengembang atau memeriksa apakah Anda memiliki versi terbaru, tetapi pertanyaan serupa dengan Anda diajukan tahun lalu di milis, dan tampaknya tidak mendapat jawaban. tanggapan:

Render hasil kueri panjang (dalam arsip dukungan pgadmin).

Ini detail implementasi yang mengecewakan di pgAdmin. Itu bisa mendapatkan semua hasil melalui permintaan tunggal, dengan daftar jenis OID yang diteruskan dalam IN(...)konstruksi atau array. Itu juga bisa menyimpan hasil ini dan bahkan tidak mengulangi permintaan pada OID yang sudah dilihatnya.

Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.