pg_dump -t 'schema-name.table-name' --schema-only database-name
More info – in the manual.
More Related Contents:
- How to reset postgres’ primary key sequence when it falls out of sync?
- How to import CSV file data into a PostgreSQL table
- Calculating and saving space in PostgreSQL
- The forgotten assignment operator “=” and the commonplace “:=”
- Equivalent to unpivot() in PostgreSQL
- Passing user id to PostgreSQL triggers
- PostgreSQL: ERROR: 42601: a column definition list is required for functions returning “record”
- I forgot the password I entered during postgres installation
- Do nullable columns occupy additional space in PostgreSQL?
- PostgreSQL: serial vs identity
- Postgres password authentication fails
- Generate series of dates – using date type as input
- Copy a few of the columns of a csv file into a table
- Postgres query to check a string is a number
- Using pyspark to connect to PostgreSQL
- Returning from a function with OUT parameter
- ERROR: permission denied for relation tablename on Postgres while trying a SELECT as a readonly user
- How do you create a random string that’s suitable for a session ID in PostgreSQL?
- PL/pgSQL functions: How to return a normal table with multiple columns using an execute statement
- Update timestamp when row is updated in PostgreSQL
- Postgresql query array of objects in JSONB field
- How to add a conditional unique index on PostgreSQL
- Heroku database restore issue
- user postgres launches process that takes all CPUs 100% usage
- PostgreSQL disable more output
- PostgreSQL array_agg order
- Postgres table column name restrictions?
- How do I get min, median and max from my query in postgresql?
- PostgreSQL jsonb, `?` and JDBC
- Syntax error at end of input in PostgreSQL