In postgresql, if multiply SQL statements are executed at one time (In pgadmin, select all these statements and click "execute" button, like this picture),
the server will wait until the last statement is done before the previous statements to take effect.
When these statements are being executed, if I run SELECT * FROM tablename1 then the "relation not exist" error will occur.
Are there any ways for the statements to take effect once they are executed. Note: Every CREATE statement needs very short time if it is executed by itself. The SELECT statement needs a long time.