Question: how to get create table script in pgadmin 4?
Answer: In pgAdmin, right click on the database and click Backup.
Enter an appropriate path and filename (i.e. /some/path/my_script. sql ).
Select Plain as the format in the format dropdown.
Go to the Dump Options #1 tab and check "Only schema".
Then click Backup. Then click Done.