pgAdmin किसी भी रिमोट ऑपरेशन पर बेहद धीमा है


10

मैं अपने स्थानीय सर्वर से दूरस्थ रूप से जुड़ने वाले अपने स्थानीय pgAdmin से इस क्वेरी को चलाता हूं:

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

यह 17 सेकंड और शो के लिए लटका रहता है

Total query runtime: 148 ms. 
1 row retrieved.

यह किसी भी ऑपरेशन पर भी लटका रहता है: एक टेबल पर राइट क्लिक करने पर भी।

बाद में मैं RDP के माध्यम से जुड़ता हूं और उसी pgAdmin संस्करण में वही क्वेरी चलाता हूं, जिसके साथ परिणाम तुरंत प्रदर्शित होता है query time: 32 ms

फिर मैं अपने स्थानीय pgAdmin से फिर से प्रश्न चलाता हूं:

Total query runtime: 337 ms.
1 row retrieved.

मैं सर्वर के लिए 130 एमएस पिंग है। कनेक्शन की गति पर्याप्त से अधिक होनी चाहिए क्योंकि मैं एफ़टीपी के माध्यम से फ़ाइलों को बहुत तेजी से अपलोड कर सकता हूं।

कनेक्शन के समय के साथ कुछ ही सेकंड में मेरे स्थानीय साइकल के साथ चलने पर समान क्वेरी।

मेरे स्थानीय pgAdmin में मेरे स्थानीय db कॉपी फ़िनिश के साथ समान क्वेरी तुरंत भी समाप्त हो जाती है।

pgAdmin संस्करण 1.20.0 है। नवीनतम 1.22 पर भी जांच की गई - अभी भी वही है।

मैं pgAdmin को गति देने के लिए क्या कर सकता हूं?

कृपया ध्यान दें कि psql ठीक काम करता है, मुझे वहां समान विलंबता दिखाई नहीं देती है।

pgAdmin लॉग 17 सेकंड क्वेरी रन के लिए:

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

क्या यह हमेशा लटका रहता है?
dezso

@ किसी भी समय मैं क्वेरी को फिर से चलाने के लिए F5 दबाता हूं। क्या यह "हमेशा" के लिए पर्याप्त है?
व्लाद

जवाबों:


6

pgadmin.logपरिणाम के प्रत्येक आउटपुट कॉलम के लिए एक्स्ट्रेक्ट से पता चलता है कि pgadminकैटलॉग के खिलाफ दो प्रश्नों को निष्पादित करता है, एक इसके प्रकार से स्वरूपित नाम oidप्राप्त करने के लिए, दूसरा संभावित आधार प्रकार प्राप्त करने के लिए।

आपके उद्धरण में, यदि मैं सही गणना कर रहा हूं, तो इस तरह के प्रश्नों की कुल संख्या प्रतीत होती है 106

के पिंग समय से 148 ms, मान लेते हैं कि सर्वर के लिए एक गोल-यात्रा के लिए न्यूनतम समय है 148 ms। तो प्रश्नों के इस सेट द्वारा लिया गया न्यूनतम समय होगा 148 x 106 = 15688 ms, या15.6 s

दूसरी ओर, कमांड-लाइन psqlक्लाइंट इन प्रश्नों में से कोई भी नहीं करता है, इसलिए यह 15.6padadmin से कम से कम सेकंड पहले समाप्त होने की उम्मीद की जा सकती है ।

मुझे यह अक्षम करने के लिए pgadmin के किसी भी विकल्प के बारे में पता नहीं है, आप डेवलपर्स से पूछ सकते हैं या जांच सकते हैं कि क्या आपके पास सबसे नया संस्करण है, लेकिन मेलिंग-सूची में पिछले साल आपसे जैसा सवाल पूछा गया था, और जाहिर तौर पर नहीं मिला प्रतिक्रिया:

लंबी क्वेरी परिणाम प्रतिपादन (pgadmin- समर्थन अभिलेखागार में)।

यह pgAdmin में एक निराशाजनक कार्यान्वयन विवरण है। यह एक IN(...)निर्माण या एक सरणी में पारित OIDs की सूची के साथ, एक ही प्रश्न के माध्यम से सभी परिणाम प्राप्त कर सकता है । यह इन परिणामों को कैश भी कर सकता है और ओआईडी पर प्रश्नों को दोहराता भी नहीं है जो यह पहले ही देख चुका है।

हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.