简体   繁体   English

pgAdmin 4在查询执行后不显示结果(postgreSQL)

[英]pgAdmin 4 does not show result after query execution (postgreSQL)

I have a big SQL file which have some queries. 我有一个大的SQL文件,其中包含一些查询。 I wish to know how many time takes the execution of the entire file. 我想知道整个文件的执行需要花费多少时间。

I open the file in "Query Tool" in pgAdmin 4 and it takes 1 minute to execute "successfully" but when I go to "View data", the table is empty (this must not happen because the file has 100.000 insertions, some selections and it does not have any deletion). 我在pgAdmin 4的“查询工具”中打开文件,“成功”执行需要1分钟,但是当我转到“查看数据”时,表为空(因为文件有100.000插入,某些选择,所以一定不会发生)并且没有任何删除)。

It is not a system error because I execute another query an it works. 这不是系统错误,因为我执行了另一个查询即可。 The SQL file size is 32,4 MB. SQL文件大小为32.4 MB。

Why does this happen? 为什么会这样?

Could be due to the file size? 可能是由于文件大小?

One thing to consider is the status of autocommit. 要考虑的一件事是自动提交的状态。 Remember that in some circumstances you can issue a lot of insert statements, but none of them will take effect unless they are committed. 请记住,在某些情况下,您可以发出很多插入语句,但是除非提交,否则它们都不会生效。 The query may not be seeing anything because the transactions have not been made permanent by the time the select is issued. 该查询可能看不到任何内容,因为在发出选择时尚未使事务永久化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM