The same approach is used in pkg/statements/sql/table_schema.sql
and a sample reproduction for the bug is:
CREATE SCHEMA test;
CREATE TABLE test.data (id INTEGER PRIMARY KEY, name TEXT);
CREATE UNIQUE INDEX "test.data_uniq" ON test.data (name);
Only the primary key is shown, and not the index created above.
* Add postgres 10/11 to test matrix
* Add docker-compose file fo running multiple postgres versions locally
* Fix client test for pg 10, modify function details to include specific fields
* Try to install latest postgres client
* Add concurrency setting
* Add initial support for functions
* Show functions definitions
* Fix client tests
* Fix schema objects search
* Perform partial matching for functions
* Add function test
* Make sure to close client connections so that database could be dropped in tests
* Fix lint
* Allow to copy the view/functions definitions
* Nits