简体   繁体   中英

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

I have a big SQL file which have some queries. 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).

It is not a system error because I execute another query an it works. The SQL file size is 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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