From 97589072b47cd927276937292dcc7be2b36b53f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20P=C3=A9rez-Aradros=20Herce?= Date: Fri, 3 Nov 2023 14:45:55 +0100 Subject: [PATCH] simplify more --- pkg/state/state.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/state/state.go b/pkg/state/state.go index 6e1c8230..efbff3e5 100644 --- a/pkg/state/state.go +++ b/pkg/state/state.go @@ -126,7 +126,6 @@ BEGIN SELECT json_agg(pg_attribute.attname) AS primary_key_columns FROM pg_index, pg_attribute WHERE - t.oid = t.oid::regclass AND indrelid = t.oid AND nspname = schemaname AND t.relnamespace = ns.oid AND @@ -139,7 +138,6 @@ BEGIN 'name', pi.indexrelid::regclass )) FROM pg_index pi - INNER JOIN pg_class pgc ON pi.indexrelid = pgc.oid WHERE pi.indrelid = t.oid::regclass ) )) FROM pg_class AS t