pgcopydb list

pgcopydb list - List database objects from a Postgres instance

This command prefixes the following sub-commands:

pgcopydb list: List database objects from a Postgres instance

Available commands:
  pgcopydb list
    databases    List databases
    extensions   List all the source extensions to copy
    collations   List all the source collations to copy
    tables       List all the source tables to copy data from
    table-parts  List a source table copy partitions
    sequences    List all the source sequences to copy data from
    indexes      List all the indexes to create again after copying the data
    depends      List all the dependencies to filter-out
    schema       List the schema to migrate, formatted in JSON
    progress     List the progress

pgcopydb list databases

pgcopydb list databases - List databases

The command pgcopydb list databases connects to the source database and executes a SQL query using the Postgres catalogs to get a list of all the databases there.

pgcopydb list databases: List databases
usage: pgcopydb list databases  --source ...

  --source            Postgres URI to the source database

pgcopydb list extensions

pgcopydb list extensions - List all the source extensions to copy

The command pgcopydb list extensions connects to the source database and executes a SQL query using the Postgres catalogs to get a list of all the extensions to COPY to the target database.

pgcopydb list extensions: List all the source extensions to copy
usage: pgcopydb list extensions  --source ...

  --source              Postgres URI to the source database
  --json                Format the output using JSON
  --available-versions  List available extension versions
  --requirements        List extensions requirements

The command pgcopydb list extensions --available-versions is typically used with the target database. If you’re using the connection string environment variables, that looks like the following:

$ pgcopydb list extensions --available-versions --source ${PGCOPYDB_TARGET_PGURI}

pgcopydb list collations

pgcopydb list collations - List all the source collations to copy

The command pgcopydb list collations connects to the source database and executes a SQL query using the Postgres catalogs to get a list of all the collations to COPY to the target database.

pgcopydb list collations: List all the source collations to copy
usage: pgcopydb list collations  --source ...

  --source            Postgres URI to the source database

The SQL query that is used lists the database collation, and then any non-default collation that’s used in a user column or a user index.

pgcopydb list tables

pgcopydb list tables - List all the source tables to copy data from

The command pgcopydb list tables connects to the source database and executes a SQL query using the Postgres catalogs to get a list of all the tables to COPY the data from.

pgcopydb list tables: List all the source tables to copy data from
usage: pgcopydb list tables  --source ...

  --source            Postgres URI to the source database
  --filter <filename> Use the filters defined in <filename>
  --force             Force fetching catalogs again
  --cache             Cache table size in relation pgcopydb.pgcopydb_table_size
  --drop-cache        Drop relation pgcopydb.pgcopydb_table_size
  --list-skipped      List only tables that are setup to be skipped
  --without-pkey      List only tables that have no primary key

The --cache option allows caching the pg_table_size() result in the newly created table pgcopydb.pgcopydb_table_size. This is only useful in Postgres deployments where this computation is quite slow, and when the pgcopydb operation is going to be run multiple times.

pgcopydb list table-parts

pgcopydb list table-parts - List a source table copy partitions

The command pgcopydb list table-parts connects to the source database and executes a SQL query using the Postgres catalogs to get detailed information about the given source table, and then another SQL query to compute how to split this source table given the size threshold argument.

pgcopydb list table-parts: List a source table copy partitions
usage: pgcopydb list table-parts  --source ...

  --source                    Postgres URI to the source database
  --force                     Force fetching catalogs again
  --schema-name               Name of the schema where to find the table
  --table-name                Name of the target table
  --split-tables-larger-than  Size threshold to consider partitioning

pgcopydb list sequences

pgcopydb list sequences - List all the source sequences to copy data from

The command pgcopydb list sequences connects to the source database and executes a SQL query using the Postgres catalogs to get a list of all the sequences to COPY the data from.

pgcopydb list sequences: List all the source sequences to copy data from
usage: pgcopydb list sequences  --source ...

  --source            Postgres URI to the source database
  --force             Force fetching catalogs again
  --filter <filename> Use the filters defined in <filename>
  --list-skipped      List only tables that are setup to be skipped

pgcopydb list indexes

pgcopydb list indexes - List all the indexes to create again after copying the data

The command pgcopydb list indexes connects to the source database and executes a SQL query using the Postgres catalogs to get a list of all the indexes to COPY the data from.

pgcopydb list indexes: List all the indexes to create again after copying the data
usage: pgcopydb list indexes  --source ... [ --schema-name [ --table-name ] ]

  --source            Postgres URI to the source database
  --force             Force fetching catalogs again
  --schema-name       Name of the schema where to find the table
  --table-name        Name of the target table
  --filter <filename> Use the filters defined in <filename>
  --list-skipped      List only tables that are setup to be skipped

pgcopydb list depends

pgcopydb list depends - List all the dependencies to filter-out

The command pgcopydb list depends connects to the source database and executes a SQL query using the Postgres catalogs to get a list of all the objects that depend on excluded objects from the filtering rules.

pgcopydb list depends: List all the dependencies to filter-out
usage: pgcopydb list depends  --source ... [ --schema-name [ --table-name ] ]

  --source            Postgres URI to the source database
  --force             Force fetching catalogs again
  --schema-name       Name of the schema where to find the table
  --table-name        Name of the target table
  --filter <filename> Use the filters defined in <filename>
  --list-skipped      List only tables that are setup to be skipped

pgcopydb list schema

pgcopydb list schema - List the schema to migrate, formatted in JSON

The command pgcopydb list schema connects to the source database and executes a SQL queries using the Postgres catalogs to get a list of the tables, indexes, and sequences to migrate. The command then outputs a JSON formatted string that contains detailed information about all those objects.

pgcopydb list schema: List the schema to migrate, formatted in JSON
usage: pgcopydb list schema  --source ...

  --source            Postgres URI to the source database
  --force             Force fetching catalogs again
  --filter <filename> Use the filters defined in <filename>

pgcopydb list progress

pgcopydb list progress - List the progress

The command pgcopydb list progress reads the internal SQLite catalogs in the work directory, parses it, and then computes how many tables and indexes are planned to be copied and created on the target database, how many have been done already, and how many are in-progress.

The --summary option displays the top-level summary, and can be used while the command is running or after-the-fact.

When using the option --json the JSON formatted output also includes a list of all the tables and indexes that are currently being processed.

pgcopydb list progress: List the progress
usage: pgcopydb list progress  --source ...

  --source  Postgres URI to the source database
  --summary List the summary, requires --json
  --json    Format the output using JSON
  --dir     Work directory to use

Options

The following options are available to pgcopydb dump schema:

--source

Connection string to the source Postgres instance. See the Postgres documentation for connection strings for the details. In short both the quoted form "host=... dbname=..." and the URI form postgres://user@host:5432/dbname are supported.

--schema-name

Filter indexes from a given schema only.

--table-name

Filter indexes from a given table only (use --schema-name to fully qualify the table).

--without-pkey

List only tables from the source database when they have no primary key attached to their schema.

--filter <filename>

This option allows to skip objects in the list operations. See Filtering for details about the expected file format and the filtering options available.

--list-skipped

Instead of listing objects that are selected for copy by the filters installed with the --filter option, list the objects that are going to be skipped when using the filters.

--summary

Instead of listing current progress when the command is still running, instead list the summary with timing details for each step and for all tables, indexes, and constraints.

This options requires the --json option too: at the moment only this output format is supported.

--json

The output of the command is formatted in JSON, when supported. Ignored otherwise.

--verbose

Increase current verbosity. The default level of verbosity is INFO. In ascending order pgcopydb knows about the following verbosity levels: FATAL, ERROR, WARN, INFO, NOTICE, DEBUG, TRACE.

--debug

Set current verbosity to DEBUG level.

--trace

Set current verbosity to TRACE level.

--quiet

Set current verbosity to ERROR level.

Environment

PGCOPYDB_SOURCE_PGURI

Connection string to the source Postgres instance. When --source is ommitted from the command line, then this environment variable is used.

Examples

Listing the tables:

$ pgcopydb list tables
14:35:18 13827 INFO  Listing ordinary tables in "port=54311 host=localhost dbname=pgloader"
14:35:19 13827 INFO  Fetched information for 56 tables
     OID |          Schema Name |           Table Name |  Est. Row Count |    On-disk size
---------+----------------------+----------------------+-----------------+----------------
   17085 |                  csv |                track |            3503 |          544 kB
   17098 |             expected |                track |            3503 |          544 kB
   17290 |             expected |           track_full |            3503 |          544 kB
   17276 |               public |           track_full |            3503 |          544 kB
   17016 |             expected |            districts |             440 |           72 kB
   17007 |               public |            districts |             440 |           72 kB
   16998 |                  csv |               blocks |             460 |           48 kB
   17003 |             expected |               blocks |             460 |           48 kB
   17405 |                  csv |              partial |               7 |           16 kB
   17323 |                  err |               errors |               0 |           16 kB
   16396 |             expected |              allcols |               0 |           16 kB
   17265 |             expected |                  csv |               0 |           16 kB
   17056 |             expected |      csv_escape_mode |               0 |           16 kB
   17331 |             expected |               errors |               0 |           16 kB
   17116 |             expected |                group |               0 |           16 kB
   17134 |             expected |                 json |               0 |           16 kB
   17074 |             expected |             matching |               0 |           16 kB
   17201 |             expected |               nullif |               0 |           16 kB
   17229 |             expected |                nulls |               0 |           16 kB
   17417 |             expected |              partial |               0 |           16 kB
   17313 |             expected |              reg2013 |               0 |           16 kB
   17437 |             expected |               serial |               0 |           16 kB
   17247 |             expected |                 sexp |               0 |           16 kB
   17378 |             expected |                test1 |               0 |           16 kB
   17454 |             expected |                  udc |               0 |           16 kB
   17471 |             expected |                xzero |               0 |           16 kB
   17372 |               nsitra |                test1 |               0 |           16 kB
   16388 |               public |              allcols |               0 |           16 kB
   17256 |               public |                  csv |               0 |           16 kB
   17047 |               public |      csv_escape_mode |               0 |           16 kB
   17107 |               public |                group |               0 |           16 kB
   17125 |               public |                 json |               0 |           16 kB
   17065 |               public |             matching |               0 |           16 kB
   17192 |               public |               nullif |               0 |           16 kB
   17219 |               public |                nulls |               0 |           16 kB
   17307 |               public |              reg2013 |               0 |           16 kB
   17428 |               public |               serial |               0 |           16 kB
   17238 |               public |                 sexp |               0 |           16 kB
   17446 |               public |                  udc |               0 |           16 kB
   17463 |               public |                xzero |               0 |           16 kB
   17303 |             expected |              copyhex |               0 |      8192 bytes
   17033 |             expected |           dateformat |               0 |      8192 bytes
   17366 |             expected |                fixed |               0 |      8192 bytes
   17041 |             expected |              jordane |               0 |      8192 bytes
   17173 |             expected |           missingcol |               0 |      8192 bytes
   17396 |             expected |             overflow |               0 |      8192 bytes
   17186 |             expected |              tab_csv |               0 |      8192 bytes
   17213 |             expected |                 temp |               0 |      8192 bytes
   17299 |               public |              copyhex |               0 |      8192 bytes
   17029 |               public |           dateformat |               0 |      8192 bytes
   17362 |               public |                fixed |               0 |      8192 bytes
   17037 |               public |              jordane |               0 |      8192 bytes
   17164 |               public |           missingcol |               0 |      8192 bytes
   17387 |               public |             overflow |               0 |      8192 bytes
   17182 |               public |              tab_csv |               0 |      8192 bytes
   17210 |               public |                 temp |               0 |      8192 bytes

Listing a table list of COPY partitions:

$ pgcopydb list table-parts --table-name rental --split-at 300kB
16:43:26 73794 INFO  Running pgcopydb version 0.8.8.g0838291.dirty from "/Users/dim/dev/PostgreSQL/pgcopydb/src/bin/pgcopydb/pgcopydb"
16:43:26 73794 INFO  Listing COPY partitions for table "public"."rental" in "postgres://@:/pagila?"
16:43:26 73794 INFO  Table "public"."rental" COPY will be split 5-ways
      Part |        Min |        Max |      Count
-----------+------------+------------+-----------
       1/5 |          1 |       3211 |       3211
       2/5 |       3212 |       6422 |       3211
       3/5 |       6423 |       9633 |       3211
       4/5 |       9634 |      12844 |       3211
       5/5 |      12845 |      16049 |       3205

Listing the indexes:

$ pgcopydb list indexes
14:35:07 13668 INFO  Listing indexes in "port=54311 host=localhost dbname=pgloader"
14:35:07 13668 INFO  Fetching all indexes in source database
14:35:07 13668 INFO  Fetched information for 12 indexes
     OID |     Schema |           Index Name |         conname |                Constraint | DDL
---------+------------+----------------------+-----------------+---------------------------+---------------------
   17002 |        csv |      blocks_ip4r_idx |                 |                           | CREATE INDEX blocks_ip4r_idx ON csv.blocks USING gist (iprange)
   17415 |        csv |        partial_b_idx |                 |                           | CREATE INDEX partial_b_idx ON csv.partial USING btree (b)
   17414 |        csv |        partial_a_key |   partial_a_key |                UNIQUE (a) | CREATE UNIQUE INDEX partial_a_key ON csv.partial USING btree (a)
   17092 |        csv |           track_pkey |      track_pkey |     PRIMARY KEY (trackid) | CREATE UNIQUE INDEX track_pkey ON csv.track USING btree (trackid)
   17329 |        err |          errors_pkey |     errors_pkey |           PRIMARY KEY (a) | CREATE UNIQUE INDEX errors_pkey ON err.errors USING btree (a)
   16394 |     public |         allcols_pkey |    allcols_pkey |           PRIMARY KEY (a) | CREATE UNIQUE INDEX allcols_pkey ON public.allcols USING btree (a)
   17054 |     public | csv_escape_mode_pkey | csv_escape_mode_pkey |          PRIMARY KEY (id) | CREATE UNIQUE INDEX csv_escape_mode_pkey ON public.csv_escape_mode USING btree (id)
   17199 |     public |          nullif_pkey |     nullif_pkey |          PRIMARY KEY (id) | CREATE UNIQUE INDEX nullif_pkey ON public."nullif" USING btree (id)
   17435 |     public |          serial_pkey |     serial_pkey |           PRIMARY KEY (a) | CREATE UNIQUE INDEX serial_pkey ON public.serial USING btree (a)
   17288 |     public |      track_full_pkey | track_full_pkey |     PRIMARY KEY (trackid) | CREATE UNIQUE INDEX track_full_pkey ON public.track_full USING btree (trackid)
   17452 |     public |             udc_pkey |        udc_pkey |           PRIMARY KEY (b) | CREATE UNIQUE INDEX udc_pkey ON public.udc USING btree (b)
   17469 |     public |           xzero_pkey |      xzero_pkey |           PRIMARY KEY (a) | CREATE UNIQUE INDEX xzero_pkey ON public.xzero USING btree (a)

Listing the schema in JSON:

$ pgcopydb list schema --split-at 200kB

This gives the following JSON output:

   1{
   2    "setup": {
   3        "snapshot": "00000003-00051AAE-1",
   4        "source_pguri": "postgres:\/\/@:\/pagila?",
   5        "target_pguri": "postgres:\/\/@:\/plop?",
   6        "table-jobs": 4,
   7        "index-jobs": 4,
   8        "split-tables-larger-than": 204800
   9    },
  10    "tables": [
  11        {
  12            "oid": 317934,
  13            "schema": "public",
  14            "name": "rental",
  15            "reltuples": 16044,
  16            "bytes": 1253376,
  17            "bytes-pretty": "1224 kB",
  18            "exclude-data": false,
  19            "restore-list-name": "public rental postgres",
  20            "part-key": "rental_id",
  21            "parts": [
  22                {
  23                    "number": 1,
  24                    "total": 7,
  25                    "min": 1,
  26                    "max": 2294,
  27                    "count": 2294
  28                },
  29                {
  30                    "number": 2,
  31                    "total": 7,
  32                    "min": 2295,
  33                    "max": 4588,
  34                    "count": 2294
  35                },
  36                {
  37                    "number": 3,
  38                    "total": 7,
  39                    "min": 4589,
  40                    "max": 6882,
  41                    "count": 2294
  42                },
  43                {
  44                    "number": 4,
  45                    "total": 7,
  46                    "min": 6883,
  47                    "max": 9176,
  48                    "count": 2294
  49                },
  50                {
  51                    "number": 5,
  52                    "total": 7,
  53                    "min": 9177,
  54                    "max": 11470,
  55                    "count": 2294
  56                },
  57                {
  58                    "number": 6,
  59                    "total": 7,
  60                    "min": 11471,
  61                    "max": 13764,
  62                    "count": 2294
  63                },
  64                {
  65                    "number": 7,
  66                    "total": 7,
  67                    "min": 13765,
  68                    "max": 16049,
  69                    "count": 2285
  70                }
  71            ]
  72        },
  73        {
  74            "oid": 317818,
  75            "schema": "public",
  76            "name": "film",
  77            "reltuples": 1000,
  78            "bytes": 483328,
  79            "bytes-pretty": "472 kB",
  80            "exclude-data": false,
  81            "restore-list-name": "public film postgres",
  82            "part-key": "film_id",
  83            "parts": [
  84                {
  85                    "number": 1,
  86                    "total": 3,
  87                    "min": 1,
  88                    "max": 334,
  89                    "count": 334
  90                },
  91                {
  92                    "number": 2,
  93                    "total": 3,
  94                    "min": 335,
  95                    "max": 668,
  96                    "count": 334
  97                },
  98                {
  99                    "number": 3,
 100                    "total": 3,
 101                    "min": 669,
 102                    "max": 1000,
 103                    "count": 332
 104                }
 105            ]
 106        },
 107        {
 108            "oid": 317920,
 109            "schema": "public",
 110            "name": "payment_p2020_04",
 111            "reltuples": 6754,
 112            "bytes": 434176,
 113            "bytes-pretty": "424 kB",
 114            "exclude-data": false,
 115            "restore-list-name": "public payment_p2020_04 postgres",
 116            "part-key": ""
 117        },
 118        {
 119            "oid": 317916,
 120            "schema": "public",
 121            "name": "payment_p2020_03",
 122            "reltuples": 5644,
 123            "bytes": 368640,
 124            "bytes-pretty": "360 kB",
 125            "exclude-data": false,
 126            "restore-list-name": "public payment_p2020_03 postgres",
 127            "part-key": ""
 128        },
 129        {
 130            "oid": 317830,
 131            "schema": "public",
 132            "name": "film_actor",
 133            "reltuples": 5462,
 134            "bytes": 270336,
 135            "bytes-pretty": "264 kB",
 136            "exclude-data": false,
 137            "restore-list-name": "public film_actor postgres",
 138            "part-key": ""
 139        },
 140        {
 141            "oid": 317885,
 142            "schema": "public",
 143            "name": "inventory",
 144            "reltuples": 4581,
 145            "bytes": 270336,
 146            "bytes-pretty": "264 kB",
 147            "exclude-data": false,
 148            "restore-list-name": "public inventory postgres",
 149            "part-key": "inventory_id",
 150            "parts": [
 151                {
 152                    "number": 1,
 153                    "total": 2,
 154                    "min": 1,
 155                    "max": 2291,
 156                    "count": 2291
 157                },
 158                {
 159                    "number": 2,
 160                    "total": 2,
 161                    "min": 2292,
 162                    "max": 4581,
 163                    "count": 2290
 164                }
 165            ]
 166        },
 167        {
 168            "oid": 317912,
 169            "schema": "public",
 170            "name": "payment_p2020_02",
 171            "reltuples": 2312,
 172            "bytes": 163840,
 173            "bytes-pretty": "160 kB",
 174            "exclude-data": false,
 175            "restore-list-name": "public payment_p2020_02 postgres",
 176            "part-key": ""
 177        },
 178        {
 179            "oid": 317784,
 180            "schema": "public",
 181            "name": "customer",
 182            "reltuples": 599,
 183            "bytes": 106496,
 184            "bytes-pretty": "104 kB",
 185            "exclude-data": false,
 186            "restore-list-name": "public customer postgres",
 187            "part-key": "customer_id"
 188        },
 189        {
 190            "oid": 317845,
 191            "schema": "public",
 192            "name": "address",
 193            "reltuples": 603,
 194            "bytes": 98304,
 195            "bytes-pretty": "96 kB",
 196            "exclude-data": false,
 197            "restore-list-name": "public address postgres",
 198            "part-key": "address_id"
 199        },
 200        {
 201            "oid": 317908,
 202            "schema": "public",
 203            "name": "payment_p2020_01",
 204            "reltuples": 1157,
 205            "bytes": 98304,
 206            "bytes-pretty": "96 kB",
 207            "exclude-data": false,
 208            "restore-list-name": "public payment_p2020_01 postgres",
 209            "part-key": ""
 210        },
 211        {
 212            "oid": 317855,
 213            "schema": "public",
 214            "name": "city",
 215            "reltuples": 600,
 216            "bytes": 73728,
 217            "bytes-pretty": "72 kB",
 218            "exclude-data": false,
 219            "restore-list-name": "public city postgres",
 220            "part-key": "city_id"
 221        },
 222        {
 223            "oid": 317834,
 224            "schema": "public",
 225            "name": "film_category",
 226            "reltuples": 1000,
 227            "bytes": 73728,
 228            "bytes-pretty": "72 kB",
 229            "exclude-data": false,
 230            "restore-list-name": "public film_category postgres",
 231            "part-key": ""
 232        },
 233        {
 234            "oid": 317798,
 235            "schema": "public",
 236            "name": "actor",
 237            "reltuples": 200,
 238            "bytes": 49152,
 239            "bytes-pretty": "48 kB",
 240            "exclude-data": false,
 241            "restore-list-name": "public actor postgres",
 242            "part-key": "actor_id"
 243        },
 244        {
 245            "oid": 317924,
 246            "schema": "public",
 247            "name": "payment_p2020_05",
 248            "reltuples": 182,
 249            "bytes": 40960,
 250            "bytes-pretty": "40 kB",
 251            "exclude-data": false,
 252            "restore-list-name": "public payment_p2020_05 postgres",
 253            "part-key": ""
 254        },
 255        {
 256            "oid": 317808,
 257            "schema": "public",
 258            "name": "category",
 259            "reltuples": 0,
 260            "bytes": 16384,
 261            "bytes-pretty": "16 kB",
 262            "exclude-data": false,
 263            "restore-list-name": "public category postgres",
 264            "part-key": "category_id"
 265        },
 266        {
 267            "oid": 317865,
 268            "schema": "public",
 269            "name": "country",
 270            "reltuples": 109,
 271            "bytes": 16384,
 272            "bytes-pretty": "16 kB",
 273            "exclude-data": false,
 274            "restore-list-name": "public country postgres",
 275            "part-key": "country_id"
 276        },
 277        {
 278            "oid": 317946,
 279            "schema": "public",
 280            "name": "staff",
 281            "reltuples": 0,
 282            "bytes": 16384,
 283            "bytes-pretty": "16 kB",
 284            "exclude-data": false,
 285            "restore-list-name": "public staff postgres",
 286            "part-key": "staff_id"
 287        },
 288        {
 289            "oid": 378280,
 290            "schema": "pgcopydb",
 291            "name": "sentinel",
 292            "reltuples": 1,
 293            "bytes": 8192,
 294            "bytes-pretty": "8192 bytes",
 295            "exclude-data": false,
 296            "restore-list-name": "pgcopydb sentinel dim",
 297            "part-key": ""
 298        },
 299        {
 300            "oid": 317892,
 301            "schema": "public",
 302            "name": "language",
 303            "reltuples": 0,
 304            "bytes": 8192,
 305            "bytes-pretty": "8192 bytes",
 306            "exclude-data": false,
 307            "restore-list-name": "public language postgres",
 308            "part-key": "language_id"
 309        },
 310        {
 311            "oid": 317928,
 312            "schema": "public",
 313            "name": "payment_p2020_06",
 314            "reltuples": 0,
 315            "bytes": 8192,
 316            "bytes-pretty": "8192 bytes",
 317            "exclude-data": false,
 318            "restore-list-name": "public payment_p2020_06 postgres",
 319            "part-key": ""
 320        },
 321        {
 322            "oid": 317957,
 323            "schema": "public",
 324            "name": "store",
 325            "reltuples": 0,
 326            "bytes": 8192,
 327            "bytes-pretty": "8192 bytes",
 328            "exclude-data": false,
 329            "restore-list-name": "public store postgres",
 330            "part-key": "store_id"
 331        }
 332    ],
 333    "indexes": [
 334        {
 335            "oid": 378283,
 336            "schema": "pgcopydb",
 337            "name": "sentinel_expr_idx",
 338            "isPrimary": false,
 339            "isUnique": true,
 340            "columns": "",
 341            "sql": "CREATE UNIQUE INDEX sentinel_expr_idx ON pgcopydb.sentinel USING btree ((1))",
 342            "restore-list-name": "pgcopydb sentinel_expr_idx dim",
 343            "table": {
 344                "oid": 378280,
 345                "schema": "pgcopydb",
 346                "name": "sentinel"
 347            }
 348        },
 349        {
 350            "oid": 318001,
 351            "schema": "public",
 352            "name": "idx_actor_last_name",
 353            "isPrimary": false,
 354            "isUnique": false,
 355            "columns": "last_name",
 356            "sql": "CREATE INDEX idx_actor_last_name ON public.actor USING btree (last_name)",
 357            "restore-list-name": "public idx_actor_last_name postgres",
 358            "table": {
 359                "oid": 317798,
 360                "schema": "public",
 361                "name": "actor"
 362            }
 363        },
 364        {
 365            "oid": 317972,
 366            "schema": "public",
 367            "name": "actor_pkey",
 368            "isPrimary": true,
 369            "isUnique": true,
 370            "columns": "actor_id",
 371            "sql": "CREATE UNIQUE INDEX actor_pkey ON public.actor USING btree (actor_id)",
 372            "restore-list-name": "",
 373            "table": {
 374                "oid": 317798,
 375                "schema": "public",
 376                "name": "actor"
 377            },
 378            "constraint": {
 379                "oid": 317973,
 380                "name": "actor_pkey",
 381                "sql": "PRIMARY KEY (actor_id)"
 382            }
 383        },
 384        {
 385            "oid": 317974,
 386            "schema": "public",
 387            "name": "address_pkey",
 388            "isPrimary": true,
 389            "isUnique": true,
 390            "columns": "address_id",
 391            "sql": "CREATE UNIQUE INDEX address_pkey ON public.address USING btree (address_id)",
 392            "restore-list-name": "",
 393            "table": {
 394                "oid": 317845,
 395                "schema": "public",
 396                "name": "address"
 397            },
 398            "constraint": {
 399                "oid": 317975,
 400                "name": "address_pkey",
 401                "sql": "PRIMARY KEY (address_id)"
 402            }
 403        },
 404        {
 405            "oid": 318003,
 406            "schema": "public",
 407            "name": "idx_fk_city_id",
 408            "isPrimary": false,
 409            "isUnique": false,
 410            "columns": "city_id",
 411            "sql": "CREATE INDEX idx_fk_city_id ON public.address USING btree (city_id)",
 412            "restore-list-name": "public idx_fk_city_id postgres",
 413            "table": {
 414                "oid": 317845,
 415                "schema": "public",
 416                "name": "address"
 417            }
 418        },
 419        {
 420            "oid": 317976,
 421            "schema": "public",
 422            "name": "category_pkey",
 423            "isPrimary": true,
 424            "isUnique": true,
 425            "columns": "category_id",
 426            "sql": "CREATE UNIQUE INDEX category_pkey ON public.category USING btree (category_id)",
 427            "restore-list-name": "",
 428            "table": {
 429                "oid": 317808,
 430                "schema": "public",
 431                "name": "category"
 432            },
 433            "constraint": {
 434                "oid": 317977,
 435                "name": "category_pkey",
 436                "sql": "PRIMARY KEY (category_id)"
 437            }
 438        },
 439        {
 440            "oid": 317978,
 441            "schema": "public",
 442            "name": "city_pkey",
 443            "isPrimary": true,
 444            "isUnique": true,
 445            "columns": "city_id",
 446            "sql": "CREATE UNIQUE INDEX city_pkey ON public.city USING btree (city_id)",
 447            "restore-list-name": "",
 448            "table": {
 449                "oid": 317855,
 450                "schema": "public",
 451                "name": "city"
 452            },
 453            "constraint": {
 454                "oid": 317979,
 455                "name": "city_pkey",
 456                "sql": "PRIMARY KEY (city_id)"
 457            }
 458        },
 459        {
 460            "oid": 318004,
 461            "schema": "public",
 462            "name": "idx_fk_country_id",
 463            "isPrimary": false,
 464            "isUnique": false,
 465            "columns": "country_id",
 466            "sql": "CREATE INDEX idx_fk_country_id ON public.city USING btree (country_id)",
 467            "restore-list-name": "public idx_fk_country_id postgres",
 468            "table": {
 469                "oid": 317855,
 470                "schema": "public",
 471                "name": "city"
 472            }
 473        },
 474        {
 475            "oid": 317980,
 476            "schema": "public",
 477            "name": "country_pkey",
 478            "isPrimary": true,
 479            "isUnique": true,
 480            "columns": "country_id",
 481            "sql": "CREATE UNIQUE INDEX country_pkey ON public.country USING btree (country_id)",
 482            "restore-list-name": "",
 483            "table": {
 484                "oid": 317865,
 485                "schema": "public",
 486                "name": "country"
 487            },
 488            "constraint": {
 489                "oid": 317981,
 490                "name": "country_pkey",
 491                "sql": "PRIMARY KEY (country_id)"
 492            }
 493        },
 494        {
 495            "oid": 318024,
 496            "schema": "public",
 497            "name": "idx_last_name",
 498            "isPrimary": false,
 499            "isUnique": false,
 500            "columns": "last_name",
 501            "sql": "CREATE INDEX idx_last_name ON public.customer USING btree (last_name)",
 502            "restore-list-name": "public idx_last_name postgres",
 503            "table": {
 504                "oid": 317784,
 505                "schema": "public",
 506                "name": "customer"
 507            }
 508        },
 509        {
 510            "oid": 318002,
 511            "schema": "public",
 512            "name": "idx_fk_address_id",
 513            "isPrimary": false,
 514            "isUnique": false,
 515            "columns": "address_id",
 516            "sql": "CREATE INDEX idx_fk_address_id ON public.customer USING btree (address_id)",
 517            "restore-list-name": "public idx_fk_address_id postgres",
 518            "table": {
 519                "oid": 317784,
 520                "schema": "public",
 521                "name": "customer"
 522            }
 523        },
 524        {
 525            "oid": 317982,
 526            "schema": "public",
 527            "name": "customer_pkey",
 528            "isPrimary": true,
 529            "isUnique": true,
 530            "columns": "customer_id",
 531            "sql": "CREATE UNIQUE INDEX customer_pkey ON public.customer USING btree (customer_id)",
 532            "restore-list-name": "",
 533            "table": {
 534                "oid": 317784,
 535                "schema": "public",
 536                "name": "customer"
 537            },
 538            "constraint": {
 539                "oid": 317983,
 540                "name": "customer_pkey",
 541                "sql": "PRIMARY KEY (customer_id)"
 542            }
 543        },
 544        {
 545            "oid": 318023,
 546            "schema": "public",
 547            "name": "idx_fk_store_id",
 548            "isPrimary": false,
 549            "isUnique": false,
 550            "columns": "store_id",
 551            "sql": "CREATE INDEX idx_fk_store_id ON public.customer USING btree (store_id)",
 552            "restore-list-name": "public idx_fk_store_id postgres",
 553            "table": {
 554                "oid": 317784,
 555                "schema": "public",
 556                "name": "customer"
 557            }
 558        },
 559        {
 560            "oid": 318009,
 561            "schema": "public",
 562            "name": "idx_fk_original_language_id",
 563            "isPrimary": false,
 564            "isUnique": false,
 565            "columns": "original_language_id",
 566            "sql": "CREATE INDEX idx_fk_original_language_id ON public.film USING btree (original_language_id)",
 567            "restore-list-name": "public idx_fk_original_language_id postgres",
 568            "table": {
 569                "oid": 317818,
 570                "schema": "public",
 571                "name": "film"
 572            }
 573        },
 574        {
 575            "oid": 318026,
 576            "schema": "public",
 577            "name": "idx_title",
 578            "isPrimary": false,
 579            "isUnique": false,
 580            "columns": "title",
 581            "sql": "CREATE INDEX idx_title ON public.film USING btree (title)",
 582            "restore-list-name": "public idx_title postgres",
 583            "table": {
 584                "oid": 317818,
 585                "schema": "public",
 586                "name": "film"
 587            }
 588        },
 589        {
 590            "oid": 318000,
 591            "schema": "public",
 592            "name": "film_fulltext_idx",
 593            "isPrimary": false,
 594            "isUnique": false,
 595            "columns": "fulltext",
 596            "sql": "CREATE INDEX film_fulltext_idx ON public.film USING gist (fulltext)",
 597            "restore-list-name": "public film_fulltext_idx postgres",
 598            "table": {
 599                "oid": 317818,
 600                "schema": "public",
 601                "name": "film"
 602            }
 603        },
 604        {
 605            "oid": 317988,
 606            "schema": "public",
 607            "name": "film_pkey",
 608            "isPrimary": true,
 609            "isUnique": true,
 610            "columns": "film_id",
 611            "sql": "CREATE UNIQUE INDEX film_pkey ON public.film USING btree (film_id)",
 612            "restore-list-name": "",
 613            "table": {
 614                "oid": 317818,
 615                "schema": "public",
 616                "name": "film"
 617            },
 618            "constraint": {
 619                "oid": 317989,
 620                "name": "film_pkey",
 621                "sql": "PRIMARY KEY (film_id)"
 622            }
 623        },
 624        {
 625            "oid": 318008,
 626            "schema": "public",
 627            "name": "idx_fk_language_id",
 628            "isPrimary": false,
 629            "isUnique": false,
 630            "columns": "language_id",
 631            "sql": "CREATE INDEX idx_fk_language_id ON public.film USING btree (language_id)",
 632            "restore-list-name": "public idx_fk_language_id postgres",
 633            "table": {
 634                "oid": 317818,
 635                "schema": "public",
 636                "name": "film"
 637            }
 638        },
 639        {
 640            "oid": 317984,
 641            "schema": "public",
 642            "name": "film_actor_pkey",
 643            "isPrimary": true,
 644            "isUnique": true,
 645            "columns": "actor_id,film_id",
 646            "sql": "CREATE UNIQUE INDEX film_actor_pkey ON public.film_actor USING btree (actor_id, film_id)",
 647            "restore-list-name": "",
 648            "table": {
 649                "oid": 317830,
 650                "schema": "public",
 651                "name": "film_actor"
 652            },
 653            "constraint": {
 654                "oid": 317985,
 655                "name": "film_actor_pkey",
 656                "sql": "PRIMARY KEY (actor_id, film_id)"
 657            }
 658        },
 659        {
 660            "oid": 318006,
 661            "schema": "public",
 662            "name": "idx_fk_film_id",
 663            "isPrimary": false,
 664            "isUnique": false,
 665            "columns": "film_id",
 666            "sql": "CREATE INDEX idx_fk_film_id ON public.film_actor USING btree (film_id)",
 667            "restore-list-name": "public idx_fk_film_id postgres",
 668            "table": {
 669                "oid": 317830,
 670                "schema": "public",
 671                "name": "film_actor"
 672            }
 673        },
 674        {
 675            "oid": 317986,
 676            "schema": "public",
 677            "name": "film_category_pkey",
 678            "isPrimary": true,
 679            "isUnique": true,
 680            "columns": "film_id,category_id",
 681            "sql": "CREATE UNIQUE INDEX film_category_pkey ON public.film_category USING btree (film_id, category_id)",
 682            "restore-list-name": "",
 683            "table": {
 684                "oid": 317834,
 685                "schema": "public",
 686                "name": "film_category"
 687            },
 688            "constraint": {
 689                "oid": 317987,
 690                "name": "film_category_pkey",
 691                "sql": "PRIMARY KEY (film_id, category_id)"
 692            }
 693        },
 694        {
 695            "oid": 318025,
 696            "schema": "public",
 697            "name": "idx_store_id_film_id",
 698            "isPrimary": false,
 699            "isUnique": false,
 700            "columns": "film_id,store_id",
 701            "sql": "CREATE INDEX idx_store_id_film_id ON public.inventory USING btree (store_id, film_id)",
 702            "restore-list-name": "public idx_store_id_film_id postgres",
 703            "table": {
 704                "oid": 317885,
 705                "schema": "public",
 706                "name": "inventory"
 707            }
 708        },
 709        {
 710            "oid": 317990,
 711            "schema": "public",
 712            "name": "inventory_pkey",
 713            "isPrimary": true,
 714            "isUnique": true,
 715            "columns": "inventory_id",
 716            "sql": "CREATE UNIQUE INDEX inventory_pkey ON public.inventory USING btree (inventory_id)",
 717            "restore-list-name": "",
 718            "table": {
 719                "oid": 317885,
 720                "schema": "public",
 721                "name": "inventory"
 722            },
 723            "constraint": {
 724                "oid": 317991,
 725                "name": "inventory_pkey",
 726                "sql": "PRIMARY KEY (inventory_id)"
 727            }
 728        },
 729        {
 730            "oid": 317992,
 731            "schema": "public",
 732            "name": "language_pkey",
 733            "isPrimary": true,
 734            "isUnique": true,
 735            "columns": "language_id",
 736            "sql": "CREATE UNIQUE INDEX language_pkey ON public.language USING btree (language_id)",
 737            "restore-list-name": "",
 738            "table": {
 739                "oid": 317892,
 740                "schema": "public",
 741                "name": "language"
 742            },
 743            "constraint": {
 744                "oid": 317993,
 745                "name": "language_pkey",
 746                "sql": "PRIMARY KEY (language_id)"
 747            }
 748        },
 749        {
 750            "oid": 318010,
 751            "schema": "public",
 752            "name": "idx_fk_payment_p2020_01_customer_id",
 753            "isPrimary": false,
 754            "isUnique": false,
 755            "columns": "customer_id",
 756            "sql": "CREATE INDEX idx_fk_payment_p2020_01_customer_id ON public.payment_p2020_01 USING btree (customer_id)",
 757            "restore-list-name": "public idx_fk_payment_p2020_01_customer_id postgres",
 758            "table": {
 759                "oid": 317908,
 760                "schema": "public",
 761                "name": "payment_p2020_01"
 762            }
 763        },
 764        {
 765            "oid": 318029,
 766            "schema": "public",
 767            "name": "payment_p2020_01_customer_id_idx",
 768            "isPrimary": false,
 769            "isUnique": false,
 770            "columns": "customer_id",
 771            "sql": "CREATE INDEX payment_p2020_01_customer_id_idx ON public.payment_p2020_01 USING btree (customer_id)",
 772            "restore-list-name": "public payment_p2020_01_customer_id_idx postgres",
 773            "table": {
 774                "oid": 317908,
 775                "schema": "public",
 776                "name": "payment_p2020_01"
 777            }
 778        },
 779        {
 780            "oid": 318012,
 781            "schema": "public",
 782            "name": "idx_fk_payment_p2020_01_staff_id",
 783            "isPrimary": false,
 784            "isUnique": false,
 785            "columns": "staff_id",
 786            "sql": "CREATE INDEX idx_fk_payment_p2020_01_staff_id ON public.payment_p2020_01 USING btree (staff_id)",
 787            "restore-list-name": "public idx_fk_payment_p2020_01_staff_id postgres",
 788            "table": {
 789                "oid": 317908,
 790                "schema": "public",
 791                "name": "payment_p2020_01"
 792            }
 793        },
 794        {
 795            "oid": 318013,
 796            "schema": "public",
 797            "name": "idx_fk_payment_p2020_02_customer_id",
 798            "isPrimary": false,
 799            "isUnique": false,
 800            "columns": "customer_id",
 801            "sql": "CREATE INDEX idx_fk_payment_p2020_02_customer_id ON public.payment_p2020_02 USING btree (customer_id)",
 802            "restore-list-name": "public idx_fk_payment_p2020_02_customer_id postgres",
 803            "table": {
 804                "oid": 317912,
 805                "schema": "public",
 806                "name": "payment_p2020_02"
 807            }
 808        },
 809        {
 810            "oid": 318014,
 811            "schema": "public",
 812            "name": "idx_fk_payment_p2020_02_staff_id",
 813            "isPrimary": false,
 814            "isUnique": false,
 815            "columns": "staff_id",
 816            "sql": "CREATE INDEX idx_fk_payment_p2020_02_staff_id ON public.payment_p2020_02 USING btree (staff_id)",
 817            "restore-list-name": "public idx_fk_payment_p2020_02_staff_id postgres",
 818            "table": {
 819                "oid": 317912,
 820                "schema": "public",
 821                "name": "payment_p2020_02"
 822            }
 823        },
 824        {
 825            "oid": 318030,
 826            "schema": "public",
 827            "name": "payment_p2020_02_customer_id_idx",
 828            "isPrimary": false,
 829            "isUnique": false,
 830            "columns": "customer_id",
 831            "sql": "CREATE INDEX payment_p2020_02_customer_id_idx ON public.payment_p2020_02 USING btree (customer_id)",
 832            "restore-list-name": "public payment_p2020_02_customer_id_idx postgres",
 833            "table": {
 834                "oid": 317912,
 835                "schema": "public",
 836                "name": "payment_p2020_02"
 837            }
 838        },
 839        {
 840            "oid": 318016,
 841            "schema": "public",
 842            "name": "idx_fk_payment_p2020_03_staff_id",
 843            "isPrimary": false,
 844            "isUnique": false,
 845            "columns": "staff_id",
 846            "sql": "CREATE INDEX idx_fk_payment_p2020_03_staff_id ON public.payment_p2020_03 USING btree (staff_id)",
 847            "restore-list-name": "public idx_fk_payment_p2020_03_staff_id postgres",
 848            "table": {
 849                "oid": 317916,
 850                "schema": "public",
 851                "name": "payment_p2020_03"
 852            }
 853        },
 854        {
 855            "oid": 318031,
 856            "schema": "public",
 857            "name": "payment_p2020_03_customer_id_idx",
 858            "isPrimary": false,
 859            "isUnique": false,
 860            "columns": "customer_id",
 861            "sql": "CREATE INDEX payment_p2020_03_customer_id_idx ON public.payment_p2020_03 USING btree (customer_id)",
 862            "restore-list-name": "public payment_p2020_03_customer_id_idx postgres",
 863            "table": {
 864                "oid": 317916,
 865                "schema": "public",
 866                "name": "payment_p2020_03"
 867            }
 868        },
 869        {
 870            "oid": 318015,
 871            "schema": "public",
 872            "name": "idx_fk_payment_p2020_03_customer_id",
 873            "isPrimary": false,
 874            "isUnique": false,
 875            "columns": "customer_id",
 876            "sql": "CREATE INDEX idx_fk_payment_p2020_03_customer_id ON public.payment_p2020_03 USING btree (customer_id)",
 877            "restore-list-name": "public idx_fk_payment_p2020_03_customer_id postgres",
 878            "table": {
 879                "oid": 317916,
 880                "schema": "public",
 881                "name": "payment_p2020_03"
 882            }
 883        },
 884        {
 885            "oid": 318032,
 886            "schema": "public",
 887            "name": "payment_p2020_04_customer_id_idx",
 888            "isPrimary": false,
 889            "isUnique": false,
 890            "columns": "customer_id",
 891            "sql": "CREATE INDEX payment_p2020_04_customer_id_idx ON public.payment_p2020_04 USING btree (customer_id)",
 892            "restore-list-name": "public payment_p2020_04_customer_id_idx postgres",
 893            "table": {
 894                "oid": 317920,
 895                "schema": "public",
 896                "name": "payment_p2020_04"
 897            }
 898        },
 899        {
 900            "oid": 318018,
 901            "schema": "public",
 902            "name": "idx_fk_payment_p2020_04_staff_id",
 903            "isPrimary": false,
 904            "isUnique": false,
 905            "columns": "staff_id",
 906            "sql": "CREATE INDEX idx_fk_payment_p2020_04_staff_id ON public.payment_p2020_04 USING btree (staff_id)",
 907            "restore-list-name": "public idx_fk_payment_p2020_04_staff_id postgres",
 908            "table": {
 909                "oid": 317920,
 910                "schema": "public",
 911                "name": "payment_p2020_04"
 912            }
 913        },
 914        {
 915            "oid": 318017,
 916            "schema": "public",
 917            "name": "idx_fk_payment_p2020_04_customer_id",
 918            "isPrimary": false,
 919            "isUnique": false,
 920            "columns": "customer_id",
 921            "sql": "CREATE INDEX idx_fk_payment_p2020_04_customer_id ON public.payment_p2020_04 USING btree (customer_id)",
 922            "restore-list-name": "public idx_fk_payment_p2020_04_customer_id postgres",
 923            "table": {
 924                "oid": 317920,
 925                "schema": "public",
 926                "name": "payment_p2020_04"
 927            }
 928        },
 929        {
 930            "oid": 318019,
 931            "schema": "public",
 932            "name": "idx_fk_payment_p2020_05_customer_id",
 933            "isPrimary": false,
 934            "isUnique": false,
 935            "columns": "customer_id",
 936            "sql": "CREATE INDEX idx_fk_payment_p2020_05_customer_id ON public.payment_p2020_05 USING btree (customer_id)",
 937            "restore-list-name": "public idx_fk_payment_p2020_05_customer_id postgres",
 938            "table": {
 939                "oid": 317924,
 940                "schema": "public",
 941                "name": "payment_p2020_05"
 942            }
 943        },
 944        {
 945            "oid": 318020,
 946            "schema": "public",
 947            "name": "idx_fk_payment_p2020_05_staff_id",
 948            "isPrimary": false,
 949            "isUnique": false,
 950            "columns": "staff_id",
 951            "sql": "CREATE INDEX idx_fk_payment_p2020_05_staff_id ON public.payment_p2020_05 USING btree (staff_id)",
 952            "restore-list-name": "public idx_fk_payment_p2020_05_staff_id postgres",
 953            "table": {
 954                "oid": 317924,
 955                "schema": "public",
 956                "name": "payment_p2020_05"
 957            }
 958        },
 959        {
 960            "oid": 318033,
 961            "schema": "public",
 962            "name": "payment_p2020_05_customer_id_idx",
 963            "isPrimary": false,
 964            "isUnique": false,
 965            "columns": "customer_id",
 966            "sql": "CREATE INDEX payment_p2020_05_customer_id_idx ON public.payment_p2020_05 USING btree (customer_id)",
 967            "restore-list-name": "public payment_p2020_05_customer_id_idx postgres",
 968            "table": {
 969                "oid": 317924,
 970                "schema": "public",
 971                "name": "payment_p2020_05"
 972            }
 973        },
 974        {
 975            "oid": 318022,
 976            "schema": "public",
 977            "name": "idx_fk_payment_p2020_06_staff_id",
 978            "isPrimary": false,
 979            "isUnique": false,
 980            "columns": "staff_id",
 981            "sql": "CREATE INDEX idx_fk_payment_p2020_06_staff_id ON public.payment_p2020_06 USING btree (staff_id)",
 982            "restore-list-name": "public idx_fk_payment_p2020_06_staff_id postgres",
 983            "table": {
 984                "oid": 317928,
 985                "schema": "public",
 986                "name": "payment_p2020_06"
 987            }
 988        },
 989        {
 990            "oid": 318034,
 991            "schema": "public",
 992            "name": "payment_p2020_06_customer_id_idx",
 993            "isPrimary": false,
 994            "isUnique": false,
 995            "columns": "customer_id",
 996            "sql": "CREATE INDEX payment_p2020_06_customer_id_idx ON public.payment_p2020_06 USING btree (customer_id)",
 997            "restore-list-name": "public payment_p2020_06_customer_id_idx postgres",
 998            "table": {
 999                "oid": 317928,
1000                "schema": "public",
1001                "name": "payment_p2020_06"
1002            }
1003        },
1004        {
1005            "oid": 318021,
1006            "schema": "public",
1007            "name": "idx_fk_payment_p2020_06_customer_id",
1008            "isPrimary": false,
1009            "isUnique": false,
1010            "columns": "customer_id",
1011            "sql": "CREATE INDEX idx_fk_payment_p2020_06_customer_id ON public.payment_p2020_06 USING btree (customer_id)",
1012            "restore-list-name": "public idx_fk_payment_p2020_06_customer_id postgres",
1013            "table": {
1014                "oid": 317928,
1015                "schema": "public",
1016                "name": "payment_p2020_06"
1017            }
1018        },
1019        {
1020            "oid": 318028,
1021            "schema": "public",
1022            "name": "idx_unq_rental_rental_date_inventory_id_customer_id",
1023            "isPrimary": false,
1024            "isUnique": true,
1025            "columns": "rental_date,inventory_id,customer_id",
1026            "sql": "CREATE UNIQUE INDEX idx_unq_rental_rental_date_inventory_id_customer_id ON public.rental USING btree (rental_date, inventory_id, customer_id)",
1027            "restore-list-name": "public idx_unq_rental_rental_date_inventory_id_customer_id postgres",
1028            "table": {
1029                "oid": 317934,
1030                "schema": "public",
1031                "name": "rental"
1032            }
1033        },
1034        {
1035            "oid": 317994,
1036            "schema": "public",
1037            "name": "rental_pkey",
1038            "isPrimary": true,
1039            "isUnique": true,
1040            "columns": "rental_id",
1041            "sql": "CREATE UNIQUE INDEX rental_pkey ON public.rental USING btree (rental_id)",
1042            "restore-list-name": "",
1043            "table": {
1044                "oid": 317934,
1045                "schema": "public",
1046                "name": "rental"
1047            },
1048            "constraint": {
1049                "oid": 317995,
1050                "name": "rental_pkey",
1051                "sql": "PRIMARY KEY (rental_id)"
1052            }
1053        },
1054        {
1055            "oid": 318007,
1056            "schema": "public",
1057            "name": "idx_fk_inventory_id",
1058            "isPrimary": false,
1059            "isUnique": false,
1060            "columns": "inventory_id",
1061            "sql": "CREATE INDEX idx_fk_inventory_id ON public.rental USING btree (inventory_id)",
1062            "restore-list-name": "public idx_fk_inventory_id postgres",
1063            "table": {
1064                "oid": 317934,
1065                "schema": "public",
1066                "name": "rental"
1067            }
1068        },
1069        {
1070            "oid": 317996,
1071            "schema": "public",
1072            "name": "staff_pkey",
1073            "isPrimary": true,
1074            "isUnique": true,
1075            "columns": "staff_id",
1076            "sql": "CREATE UNIQUE INDEX staff_pkey ON public.staff USING btree (staff_id)",
1077            "restore-list-name": "",
1078            "table": {
1079                "oid": 317946,
1080                "schema": "public",
1081                "name": "staff"
1082            },
1083            "constraint": {
1084                "oid": 317997,
1085                "name": "staff_pkey",
1086                "sql": "PRIMARY KEY (staff_id)"
1087            }
1088        },
1089        {
1090            "oid": 318027,
1091            "schema": "public",
1092            "name": "idx_unq_manager_staff_id",
1093            "isPrimary": false,
1094            "isUnique": true,
1095            "columns": "manager_staff_id",
1096            "sql": "CREATE UNIQUE INDEX idx_unq_manager_staff_id ON public.store USING btree (manager_staff_id)",
1097            "restore-list-name": "public idx_unq_manager_staff_id postgres",
1098            "table": {
1099                "oid": 317957,
1100                "schema": "public",
1101                "name": "store"
1102            }
1103        },
1104        {
1105            "oid": 317998,
1106            "schema": "public",
1107            "name": "store_pkey",
1108            "isPrimary": true,
1109            "isUnique": true,
1110            "columns": "store_id",
1111            "sql": "CREATE UNIQUE INDEX store_pkey ON public.store USING btree (store_id)",
1112            "restore-list-name": "",
1113            "table": {
1114                "oid": 317957,
1115                "schema": "public",
1116                "name": "store"
1117            },
1118            "constraint": {
1119                "oid": 317999,
1120                "name": "store_pkey",
1121                "sql": "PRIMARY KEY (store_id)"
1122            }
1123        }
1124    ],
1125    "sequences": [
1126        {
1127            "oid": 317796,
1128            "schema": "public",
1129            "name": "actor_actor_id_seq",
1130            "last-value": 200,
1131            "is-called": true,
1132            "restore-list-name": "public actor_actor_id_seq postgres"
1133        },
1134        {
1135            "oid": 317843,
1136            "schema": "public",
1137            "name": "address_address_id_seq",
1138            "last-value": 605,
1139            "is-called": true,
1140            "restore-list-name": "public address_address_id_seq postgres"
1141        },
1142        {
1143            "oid": 317806,
1144            "schema": "public",
1145            "name": "category_category_id_seq",
1146            "last-value": 16,
1147            "is-called": true,
1148            "restore-list-name": "public category_category_id_seq postgres"
1149        },
1150        {
1151            "oid": 317853,
1152            "schema": "public",
1153            "name": "city_city_id_seq",
1154            "last-value": 600,
1155            "is-called": true,
1156            "restore-list-name": "public city_city_id_seq postgres"
1157        },
1158        {
1159            "oid": 317863,
1160            "schema": "public",
1161            "name": "country_country_id_seq",
1162            "last-value": 109,
1163            "is-called": true,
1164            "restore-list-name": "public country_country_id_seq postgres"
1165        },
1166        {
1167            "oid": 317782,
1168            "schema": "public",
1169            "name": "customer_customer_id_seq",
1170            "last-value": 599,
1171            "is-called": true,
1172            "restore-list-name": "public customer_customer_id_seq postgres"
1173        },
1174        {
1175            "oid": 317816,
1176            "schema": "public",
1177            "name": "film_film_id_seq",
1178            "last-value": 1000,
1179            "is-called": true,
1180            "restore-list-name": "public film_film_id_seq postgres"
1181        },
1182        {
1183            "oid": 317883,
1184            "schema": "public",
1185            "name": "inventory_inventory_id_seq",
1186            "last-value": 4581,
1187            "is-called": true,
1188            "restore-list-name": "public inventory_inventory_id_seq postgres"
1189        },
1190        {
1191            "oid": 317890,
1192            "schema": "public",
1193            "name": "language_language_id_seq",
1194            "last-value": 6,
1195            "is-called": true,
1196            "restore-list-name": "public language_language_id_seq postgres"
1197        },
1198        {
1199            "oid": 317902,
1200            "schema": "public",
1201            "name": "payment_payment_id_seq",
1202            "last-value": 32099,
1203            "is-called": true,
1204            "restore-list-name": "public payment_payment_id_seq postgres"
1205        },
1206        {
1207            "oid": 317932,
1208            "schema": "public",
1209            "name": "rental_rental_id_seq",
1210            "last-value": 16050,
1211            "is-called": true,
1212            "restore-list-name": "public rental_rental_id_seq postgres"
1213        },
1214        {
1215            "oid": 317944,
1216            "schema": "public",
1217            "name": "staff_staff_id_seq",
1218            "last-value": 2,
1219            "is-called": true,
1220            "restore-list-name": "public staff_staff_id_seq postgres"
1221        },
1222        {
1223            "oid": 317955,
1224            "schema": "public",
1225            "name": "store_store_id_seq",
1226            "last-value": 2,
1227            "is-called": true,
1228            "restore-list-name": "public store_store_id_seq postgres"
1229        }
1230    ]
1231}

Listing current progress (log lines removed):

$ pgcopydb list progress 2>/dev/null
             |  Total Count |  In Progress |         Done
-------------+--------------+--------------+-------------
      Tables |           21 |            4 |            7
     Indexes |           48 |           14 |            7

Listing current progress, in JSON:

$ pgcopydb list progress --json 2>/dev/null
{
    "table-jobs": 4,
    "index-jobs": 4,
    "tables": {
        "total": 21,
        "done": 9,
        "in-progress": [
            {
                "oid": 317908,
                "schema": "public",
                "name": "payment_p2020_01",
                "reltuples": 1157,
                "bytes": 98304,
                "bytes-pretty": "96 kB",
                "exclude-data": false,
                "restore-list-name": "public payment_p2020_01 postgres",
                "part-key": "",
                "process": {
                    "pid": 75159,
                    "start-time-epoch": 1662476249,
                    "start-time-string": "2022-09-06 16:57:29 CEST",
                    "command": "COPY \"public\".\"payment_p2020_01\""
                }
            },
            {
                "oid": 317855,
                "schema": "public",
                "name": "city",
                "reltuples": 600,
                "bytes": 73728,
                "bytes-pretty": "72 kB",
                "exclude-data": false,
                "restore-list-name": "public city postgres",
                "part-key": "city_id",
                "process": {
                    "pid": 75157,
                    "start-time-epoch": 1662476249,
                    "start-time-string": "2022-09-06 16:57:29 CEST",
                    "command": "COPY \"public\".\"city\""
                }
            }
        ]
    },
       "indexes": {
        "total": 48,
        "done": 39,
        "in-progress": [
            {
                "oid": 378283,
                "schema": "pgcopydb",
                "name": "sentinel_expr_idx",
                "isPrimary": false,
                "isUnique": true,
                "columns": "",
                "sql": "CREATE UNIQUE INDEX sentinel_expr_idx ON pgcopydb.sentinel USING btree ((1))",
                "restore-list-name": "pgcopydb sentinel_expr_idx dim",
                "table": {
                    "oid": 378280,
                    "schema": "pgcopydb",
                    "name": "sentinel"
                },
                "process": {
                    "pid": 74372,
                    "start-time-epoch": 1662476080,
                    "start-time-string": "2022-09-06 16:54:40 CEST"
                }
            },
            {
                "oid": 317980,
                "schema": "public",
                "name": "country_pkey",
                "isPrimary": true,
                "isUnique": true,
                "columns": "country_id",
                "sql": "CREATE UNIQUE INDEX country_pkey ON public.country USING btree (country_id)",
                "restore-list-name": "public country_pkey postgres",
                "table": {
                    "oid": 317865,
                    "schema": "public",
                    "name": "country"
                },
                "constraint": {
                    "oid": 317981,
                    "name": "country_pkey",
                    "sql": "PRIMARY KEY (country_id)",
                    "restore-list-name": ""
                },
                "process": {
                    "pid": 74358,
                    "start-time-epoch": 1662476080,
                    "start-time-string": "2022-09-06 16:54:40 CEST"
                }
            },
            {
                "oid": 317996,
                "schema": "public",
                "name": "staff_pkey",
                "isPrimary": true,
                "isUnique": true,
                "columns": "staff_id",
                "sql": "CREATE UNIQUE INDEX staff_pkey ON public.staff USING btree (staff_id)",
                "restore-list-name": "public staff_pkey postgres",
                "table": {
                    "oid": 317946,
                    "schema": "public",
                    "name": "staff"
                },
                "constraint": {
                    "oid": 317997,
                    "name": "staff_pkey",
                    "sql": "PRIMARY KEY (staff_id)",
                    "restore-list-name": ""
                },
                "process": {
                    "pid": 74368,
                    "start-time-epoch": 1662476080,
                    "start-time-string": "2022-09-06 16:54:40 CEST"
                }
            }
        ]
    }
}