Why is Postgresql slow when using two boolean columns in the WHERE condition?
CREATE TABLE IF NOT EXISTS schema1.table1 ( ID bigint NOT NULL, eid bigint NOT NULL, sID bigint, oname character varying COLLATE pg_catalog."default" NOT NULL, obtype integer NOT NULL, parentid bigint, pageorder integer, obsubtype integer NOT NULL DEFAULT 0, pstate integer…