"stock_supplier"."id",
"stock_supplier"."client_id",
"stock_supplier"."identifier",
"stock_supplier"."name",
"stock_supplier"."api_updated",
"stock_supplier"."api_changed",
"stock_supplier"."supplier_code",
"stock_supplier"."phone",
"stock_supplier"."commodity_credit_days",
"stock_supplier"."address"
FROM "stock_supplier"
WHERE "stock_supplier"."id"
IN (SELECT DISTINCT U0."supplier_id"
FROM "view_suppliershopproduct" U0)
ORDER BY "stock_supplier"."name" ASC;
https://t.me/pgsql/288632 , только вместо EXPLAIN (ANALYZE, BUFFERS) покажите EXPLAIN (VERBOSE).
Обсуждают сегодня