Skip to content

tablesPG ​

Command: tablesPG
Category: Object Inspection
Status: Production Ready

Description ​

Get a list of all tables from PostgreSQL

Syntax ​

bash
hana-cli tablesPG [schema] [table] [options]

Aliases ​

  • tablespg
  • tablespostgres
  • tablesPostgres
  • tables-postgres
  • tables-postgressql
  • tablesPOSTGRES

Command Diagram ​

Parameters ​

Positional Arguments ​

ParameterTypeDescription
schemastringSchema name filter (optional positional input).
tablestringTable name filter (optional positional input).

Options ​

OptionAliasTypeDefaultDescription
--table-tstring*PostgreSQL table name pattern to match.
--schema-sstring**CURRENT_SCHEMA**Schema name or pattern to match.
--profile-pstringpgProfile used to route execution to PostgreSQL mode.
--limit-lnumber200Maximum number of rows returned.

For additional shared options from the common command builder, use hana-cli tablesPG --help.

Examples ​

Basic Usage ​

bash
hana-cli tablesPG --table * --schema MYSCHEMA

List PostgreSQL tables matching schema and table filters.

See Also ​