├── .github └── workflows │ └── build.yml ├── .gitignore ├── CHANGELOG.md ├── Dockerfile ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── exe └── dexter ├── guides ├── Hosted-Postgres.md └── Linux.md ├── lib ├── dexter.rb ├── dexter │ ├── client.rb │ ├── collector.rb │ ├── column_resolver.rb │ ├── connection.rb │ ├── index_creator.rb │ ├── indexer.rb │ ├── logging.rb │ ├── parsers │ │ ├── csv_log_parser.rb │ │ ├── json_log_parser.rb │ │ ├── log_parser.rb │ │ ├── sql_log_parser.rb │ │ └── stderr_log_parser.rb │ ├── processor.rb │ ├── query.rb │ ├── sources │ │ ├── log_source.rb │ │ ├── pg_stat_activity_source.rb │ │ ├── pg_stat_statements_source.rb │ │ └── statement_source.rb │ ├── table_resolver.rb │ └── version.rb └── pgdexter.rb ├── pgdexter.gemspec └── test ├── batching_test.rb ├── connection_test.rb ├── create_test.rb ├── indexing_test.rb ├── input_test.rb ├── statement_test.rb ├── support ├── queries.csv ├── queries.json ├── queries.log ├── queries.sql └── schema.sql └── test_helper.rb /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/Dockerfile -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/Rakefile -------------------------------------------------------------------------------- /exe/dexter: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/exe/dexter -------------------------------------------------------------------------------- /guides/Hosted-Postgres.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/guides/Hosted-Postgres.md -------------------------------------------------------------------------------- /guides/Linux.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/guides/Linux.md -------------------------------------------------------------------------------- /lib/dexter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter.rb -------------------------------------------------------------------------------- /lib/dexter/client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/client.rb -------------------------------------------------------------------------------- /lib/dexter/collector.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/collector.rb -------------------------------------------------------------------------------- /lib/dexter/column_resolver.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/column_resolver.rb -------------------------------------------------------------------------------- /lib/dexter/connection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/connection.rb -------------------------------------------------------------------------------- /lib/dexter/index_creator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/index_creator.rb -------------------------------------------------------------------------------- /lib/dexter/indexer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/indexer.rb -------------------------------------------------------------------------------- /lib/dexter/logging.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/logging.rb -------------------------------------------------------------------------------- /lib/dexter/parsers/csv_log_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/parsers/csv_log_parser.rb -------------------------------------------------------------------------------- /lib/dexter/parsers/json_log_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/parsers/json_log_parser.rb -------------------------------------------------------------------------------- /lib/dexter/parsers/log_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/parsers/log_parser.rb -------------------------------------------------------------------------------- /lib/dexter/parsers/sql_log_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/parsers/sql_log_parser.rb -------------------------------------------------------------------------------- /lib/dexter/parsers/stderr_log_parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/parsers/stderr_log_parser.rb -------------------------------------------------------------------------------- /lib/dexter/processor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/processor.rb -------------------------------------------------------------------------------- /lib/dexter/query.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/query.rb -------------------------------------------------------------------------------- /lib/dexter/sources/log_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/sources/log_source.rb -------------------------------------------------------------------------------- /lib/dexter/sources/pg_stat_activity_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/sources/pg_stat_activity_source.rb -------------------------------------------------------------------------------- /lib/dexter/sources/pg_stat_statements_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/sources/pg_stat_statements_source.rb -------------------------------------------------------------------------------- /lib/dexter/sources/statement_source.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/sources/statement_source.rb -------------------------------------------------------------------------------- /lib/dexter/table_resolver.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/lib/dexter/table_resolver.rb -------------------------------------------------------------------------------- /lib/dexter/version.rb: -------------------------------------------------------------------------------- 1 | module Dexter 2 | VERSION = "0.6.3" 3 | end 4 | -------------------------------------------------------------------------------- /lib/pgdexter.rb: -------------------------------------------------------------------------------- 1 | require_relative "dexter" 2 | -------------------------------------------------------------------------------- /pgdexter.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/pgdexter.gemspec -------------------------------------------------------------------------------- /test/batching_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/batching_test.rb -------------------------------------------------------------------------------- /test/connection_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/connection_test.rb -------------------------------------------------------------------------------- /test/create_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/create_test.rb -------------------------------------------------------------------------------- /test/indexing_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/indexing_test.rb -------------------------------------------------------------------------------- /test/input_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/input_test.rb -------------------------------------------------------------------------------- /test/statement_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/statement_test.rb -------------------------------------------------------------------------------- /test/support/queries.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/support/queries.csv -------------------------------------------------------------------------------- /test/support/queries.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/support/queries.json -------------------------------------------------------------------------------- /test/support/queries.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/support/queries.log -------------------------------------------------------------------------------- /test/support/queries.sql: -------------------------------------------------------------------------------- 1 | SELECT * FROM posts WHERE id = 1; 2 | -------------------------------------------------------------------------------- /test/support/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/support/schema.sql -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankane/dexter/HEAD/test/test_helper.rb --------------------------------------------------------------------------------