$ git checkout main
$ git fetch --all
$ git reset --hard origin/main$ git remote -v
origin [email protected]:netfantom-spb/oldrepository.git (fetch)$ git checkout main
$ git fetch --all
$ git reset --hard origin/main$ git remote -v
origin [email protected]:netfantom-spb/oldrepository.git (fetch)-- CREATE EXTENSION IF NOT EXISTS pgstattuple;
WITH all_tables AS (
SELECT
n.nspname AS schemaname,
c.relname AS tablename
FROM pg_class c
JOIN pg_namespace n ON c.relnamespace = n.oid
WHERE c.relkind = 'r' -- обычные таблицы