Cú pháp: psql -U postgres -f [tên_file]. Chạy file 1.sql ở citus_master, 1_test.sql ở citus_worker_1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS users; | |
DROP TABLE IF EXISTS posts; | |
CREATE TABLE users (id int, name text, age int); | |
CREATE TABLE posts (id int, title text); | |
SELECT create_reference_table('users'); | |
SELECT create_reference_table('posts'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment