2023-03-27 00:00:06: pid 18564: LOG: new connection received 2023-03-27 00:00:06: pid 18564: DETAIL: connecting host=10.0.0.20 port=36744 2023-03-27 00:00:06: pid 18564: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18564: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18564: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:06: pid 18635: LOG: new connection received 2023-03-27 00:00:06: pid 18635: DETAIL: connecting host=10.0.0.20 port=36768 2023-03-27 00:00:06: pid 18553: LOG: new connection received 2023-03-27 00:00:06: pid 18553: DETAIL: connecting host=10.0.0.20 port=36762 2023-03-27 00:00:06: pid 18941: LOG: new connection received 2023-03-27 00:00:06: pid 18941: DETAIL: connecting host=10.0.0.20 port=36752 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: SELECT version() 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18564: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18635: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18635: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18635: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:06: pid 18941: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18941: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18941: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:06: pid 18553: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18553: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18553: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18564: LOG: statement: BEGIN 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: SELECT version() 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: SELECT version() 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18635: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18941: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: SELECT version() 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_device_devicemaintainplan_view"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Parse: SELECT oid, "deviceCode" as devicecode, status, "planStart" as planstart, "plantEnd" as plantend, cdt, udt FROM report.v_device_devicemaintainplan_view WHERE 1 > '-1' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Bind: SELECT oid, "deviceCode" as devicecode, status, "planStart" as planstart, "plantEnd" as plantend, cdt, udt FROM report.v_device_devicemaintainplan_view WHERE 1 > '-1' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: D message 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18553: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18564: LOG: statement: SELECT oid, "deviceCode" as devicecode, status, "planStart" as planstart, "plantEnd" as plantend, cdt, udt FROM report.v_device_devicemaintainplan_view WHERE 1 > '-1' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Execute: SELECT oid, "deviceCode" as devicecode, status, "planStart" as planstart, "plantEnd" as plantend, cdt, udt FROM report.v_device_devicemaintainplan_view WHERE 1 > '-1' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18635: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18553: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18941: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18635: LOG: statement: BEGIN 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: statement: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Parse: SELECT oid, pn, sn, catalog, category, spec, sku, department, lotname, status, enabled, price, productdate, usage_count, repair_count, detail, remark, cdt, udt FROM report.v_spare_sn WHERE udt > '2023-03-22 15:07:44.930922' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Bind: SELECT oid, pn, sn, catalog, category, spec, sku, department, lotname, status, enabled, price, productdate, usage_count, repair_count, detail, remark, cdt, udt FROM report.v_spare_sn WHERE udt > '2023-03-22 15:07:44.930922' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: D message 2023-03-27 00:00:06: pid 18635: LOG: statement: SELECT oid, pn, sn, catalog, category, spec, sku, department, lotname, status, enabled, price, productdate, usage_count, repair_count, detail, remark, cdt, udt FROM report.v_spare_sn WHERE udt > '2023-03-22 15:07:44.930922' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Execute: SELECT oid, pn, sn, catalog, category, spec, sku, department, lotname, status, enabled, price, productdate, usage_count, repair_count, detail, remark, cdt, udt FROM report.v_spare_sn WHERE udt > '2023-03-22 15:07:44.930922' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn_log"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Parse: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, targettype, product_model, target_line, device_code, fixture_sn, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_sn_log WHERE cdt > '2023-03-25 06:09:07.177398' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18941: LOG: statement: BEGIN 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Bind: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, targettype, product_model, target_line, device_code, fixture_sn, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_sn_log WHERE cdt > '2023-03-25 06:09:07.177398' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: D message 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18553: LOG: statement: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, targettype, product_model, target_line, device_code, fixture_sn, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_sn_log WHERE cdt > '2023-03-25 06:09:07.177398' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Execute: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, targettype, product_model, target_line, device_code, fixture_sn, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_sn_log WHERE cdt > '2023-03-25 06:09:07.177398' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: C message 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: C message 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142403 AS oid , 1 AS attnum UNION ALL SELECT 5142403, 2 UNION ALL SELECT 5142403, 3 UNION ALL SELECT 5142403, 4 UNION ALL SELECT 5142403, 5 UNION ALL SELECT 5142403, 6 UNION ALL SELECT 5142403, 7 UNION ALL SELECT 5142403, 8 UNION ALL SELECT 5142403, 9 UNION ALL SELECT 5142403, 10 UNION ALL SELECT 5142403, 11 UNION ALL SELECT 5142403, 12 UNION ALL SELECT 5142403, 13 UNION ALL SELECT 5142403, 14 UNION ALL SELECT 5142403, 15 UNION ALL SELECT 5142403, 16 UNION ALL SELECT 5142403, 17 UNION ALL SELECT 5142403, 18 UNION ALL SELECT 514 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142403 AS oid , 1 AS attnum UNION ALL SELECT 5142403, 2 UNION ALL SELECT 5142403, 3 UNION ALL SELECT 5142403, 4 UNION ALL SELECT 5142403, 5 UNION ALL SELECT 5142403, 6 UNION ALL SELECT 5142403, 7 UNION ALL SELECT 5142403, 8 UNION ALL SELECT 5142403, 9 UNION ALL SELECT 5142403, 10 UNION ALL SELECT 5142403, 11 UNION ALL SELECT 5142403, 12 UNION ALL SELECT 5142403, 13 UNION ALL SELECT 5142403, 14 UNION ALL SELECT 5142403, 15 UNION ALL SELECT 5142403, 16 UNION ALL SELECT 5142403, 17 UNION ALL SELECT 5142403, 18 UNION ALL SELECT 5142 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: D message 2023-03-27 00:00:06: pid 18553: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142403 AS oid , 1 AS attnum UNION ALL SELECT 5142403, 2 UNION ALL SELECT 5142403, 3 UNION ALL SELECT 5142403, 4 UNION ALL SELECT 5142403, 5 UNION ALL SELECT 5142403, 6 UNION ALL SELECT 5142403, 7 UNION ALL SELECT 5142403, 8 UNION ALL SELECT 5142403, 9 UNION ALL SELECT 5142403, 10 UNION ALL SELECT 5142403, 11 UNION ALL SELECT 5142403, 12 UNION ALL SELECT 5142403, 13 UNION ALL SELECT 5142403, 14 UNION ALL SELECT 5142403, 15 UNION ALL SELECT 5142403, 16 UNION ALL SELECT 5142403, 17 UNION ALL SELECT 5142403, 18 UNION ALL SELECT 5142403, 19 UNION ALL SELECT 5142403, 20 UNION ALL SELECT 5142403, 21) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142403 AS oid , 1 AS attnum UNION ALL SELECT 5142403, 2 UNION ALL SELECT 5142403, 3 UNION ALL SELECT 5142403, 4 UNION ALL SELECT 5142403, 5 UNION ALL SELECT 5142403, 6 UNION ALL SELECT 5142403, 7 UNION ALL SELECT 5142403, 8 UNION ALL SELECT 5142403, 9 UNION ALL SELECT 5142403, 10 UNION ALL SELECT 5142403, 11 UNION ALL SELECT 5142403, 12 UNION ALL SELECT 5142403, 13 UNION ALL SELECT 5142403, 14 UNION ALL SELECT 5142403, 15 UNION ALL SELECT 5142403, 16 UNION ALL SELECT 5142403, 17 UNION ALL SELECT 5142403, 18 UNION ALL SELECT 5 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_sn_specialkeys"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Parse: SELECT plt_currentprocess, plt_oid, plt_owner, plt_lastmodifytime, plt_lastmodifier, plt_id, plt_createtime, plt_creator, sn, plt_fixturesnoid, e01ksnloadcfg, e015snloadcfg, ktsbt, plt_ntexpiredate, ktiscr, e037snloadcfg, e386snloadcfg, e01wsnloadcfg, e085snloadcfg, e060snloadcfg, e050snloadcfg, e0lcsnloadcfg, e020snloadcfg, e014snloadcfg, e055snloadcfg, plt_zsspcbcolor, plt_zmspcbcolor, plt_zmwpcbcolor, plt_zswpcbcolor, pn, e018snloadcfg, e01tsnloadcfg, e021snloadcfg, e02bsnloadcfg, e02rsnloadcfg, e075snloadcfg, e0b1snloadcfg, e55msnloadcfg, e55qsnloadcfg, e66rsnloadcfg, plt_atiscr FROM report.v_fixture_sn_specialkeys WHERE plt_lastmodifytime > '2023-03-24 16:21:15.839173' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Bind: SELECT plt_currentprocess, plt_oid, plt_owner, plt_lastmodifytime, plt_lastmodifier, plt_id, plt_createtime, plt_creator, sn, plt_fixturesnoid, e01ksnloadcfg, e015snloadcfg, ktsbt, plt_ntexpiredate, ktiscr, e037snloadcfg, e386snloadcfg, e01wsnloadcfg, e085snloadcfg, e060snloadcfg, e050snloadcfg, e0lcsnloadcfg, e020snloadcfg, e014snloadcfg, e055snloadcfg, plt_zsspcbcolor, plt_zmspcbcolor, plt_zmwpcbcolor, plt_zswpcbcolor, pn, e018snloadcfg, e01tsnloadcfg, e021snloadcfg, e02bsnloadcfg, e02rsnloadcfg, e075snloadcfg, e0b1snloadcfg, e55msnloadcfg, e55qsnloadcfg, e66rsnloadcfg, plt_atiscr FROM report.v_fixture_sn_specialkeys WHERE plt_lastmodifytime > '2023-03-24 16:21:15.839173' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: D message 2023-03-27 00:00:06: pid 18941: LOG: statement: SELECT plt_currentprocess, plt_oid, plt_owner, plt_lastmodifytime, plt_lastmodifier, plt_id, plt_createtime, plt_creator, sn, plt_fixturesnoid, e01ksnloadcfg, e015snloadcfg, ktsbt, plt_ntexpiredate, ktiscr, e037snloadcfg, e386snloadcfg, e01wsnloadcfg, e085snloadcfg, e060snloadcfg, e050snloadcfg, e0lcsnloadcfg, e020snloadcfg, e014snloadcfg, e055snloadcfg, plt_zsspcbcolor, plt_zmspcbcolor, plt_zmwpcbcolor, plt_zswpcbcolor, pn, e018snloadcfg, e01tsnloadcfg, e021snloadcfg, e02bsnloadcfg, e02rsnloadcfg, e075snloadcfg, e0b1snloadcfg, e55msnloadcfg, e55qsnloadcfg, e66rsnloadcfg, plt_atiscr FROM report.v_fixture_sn_specialkeys WHERE plt_lastmodifytime > '2023-03-24 16:21:15.839173' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Execute: SELECT plt_currentprocess, plt_oid, plt_owner, plt_lastmodifytime, plt_lastmodifier, plt_id, plt_createtime, plt_creator, sn, plt_fixturesnoid, e01ksnloadcfg, e015snloadcfg, ktsbt, plt_ntexpiredate, ktiscr, e037snloadcfg, e386snloadcfg, e01wsnloadcfg, e085snloadcfg, e060snloadcfg, e050snloadcfg, e0lcsnloadcfg, e020snloadcfg, e014snloadcfg, e055snloadcfg, plt_zsspcbcolor, plt_zmspcbcolor, plt_zmwpcbcolor, plt_zswpcbcolor, pn, e018snloadcfg, e01tsnloadcfg, e021snloadcfg, e02bsnloadcfg, e02rsnloadcfg, e075snloadcfg, e0b1snloadcfg, e55msnloadcfg, e55qsnloadcfg, e66rsnloadcfg, plt_atiscr FROM report.v_fixture_sn_specialkeys WHERE plt_lastmodifytime > '2023-03-24 16:21:15.839173' 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Parse: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Bind: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: D message 2023-03-27 00:00:06: pid 18553: LOG: statement: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Execute: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: C message 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: C message 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6958846 AS oid , 1 AS attnum UNION ALL SELECT 6958846, 2 UNION ALL SELECT 6958846, 3 UNION ALL SELECT 6958846, 4 UNION ALL SELECT 6958846, 5 UNION ALL SELECT 6958846, 6 UNION ALL SELECT 6958846, 7 UNION ALL SELECT 6958846, 8 UNION ALL SELECT 6958846, 9 UNION ALL SELECT 6958846, 10 UNION ALL SELECT 6958846, 11 UNION ALL SELECT 6958846, 12 UNION ALL SELECT 6958846, 13 UNION ALL SELECT 6958846, 14 UNION ALL SELECT 6958846, 15 UNION ALL SELECT 6958846, 16 UNION ALL SELECT 6958846, 17 UNION ALL SELECT 6958846, 18 UNION ALL SELECT 695 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6958846 AS oid , 1 AS attnum UNION ALL SELECT 6958846, 2 UNION ALL SELECT 6958846, 3 UNION ALL SELECT 6958846, 4 UNION ALL SELECT 6958846, 5 UNION ALL SELECT 6958846, 6 UNION ALL SELECT 6958846, 7 UNION ALL SELECT 6958846, 8 UNION ALL SELECT 6958846, 9 UNION ALL SELECT 6958846, 10 UNION ALL SELECT 6958846, 11 UNION ALL SELECT 6958846, 12 UNION ALL SELECT 6958846, 13 UNION ALL SELECT 6958846, 14 UNION ALL SELECT 6958846, 15 UNION ALL SELECT 6958846, 16 UNION ALL SELECT 6958846, 17 UNION ALL SELECT 6958846, 18 UNION ALL SELECT 6958 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: D message 2023-03-27 00:00:06: pid 18941: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6958846 AS oid , 1 AS attnum UNION ALL SELECT 6958846, 2 UNION ALL SELECT 6958846, 3 UNION ALL SELECT 6958846, 4 UNION ALL SELECT 6958846, 5 UNION ALL SELECT 6958846, 6 UNION ALL SELECT 6958846, 7 UNION ALL SELECT 6958846, 8 UNION ALL SELECT 6958846, 9 UNION ALL SELECT 6958846, 10 UNION ALL SELECT 6958846, 11 UNION ALL SELECT 6958846, 12 UNION ALL SELECT 6958846, 13 UNION ALL SELECT 6958846, 14 UNION ALL SELECT 6958846, 15 UNION ALL SELECT 6958846, 16 UNION ALL SELECT 6958846, 17 UNION ALL SELECT 6958846, 18 UNION ALL SELECT 6958846, 19 UNION ALL SELECT 6958846, 20 UNION ALL SELECT 6958846, 21 UNION ALL SELECT 6958846, 22 UNION ALL SELECT 6958846, 23 UNION ALL SELECT 6958846, 24 UNION ALL SELECT 6958846, 25 UNION ALL SELECT 6958846, 26 UNION ALL SELECT 6958846, 27 UNION ALL SELECT 6958846, 28 UNION ALL SELECT 6958846, 29 UNION ALL SELECT 6958846, 30 UNION ALL SELECT 6958846, 31 UNION ALL SELECT 6958846, 32 UNION ALL SELECT 6958846, 33 UNION ALL SELECT 6958846, 34 UNION ALL SELECT 6958846, 35 UNION ALL SELECT 6958846, 36 UNION ALL SELECT 6958846, 37 UNION ALL SELECT 6958846, 38 UNION ALL SELECT 6958846, 39 UNION ALL SELECT 6958846, 40 UNION ALL SELECT 6958846, 41) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6958846 AS oid , 1 AS attnum UNION ALL SELECT 6958846, 2 UNION ALL SELECT 6958846, 3 UNION ALL SELECT 6958846, 4 UNION ALL SELECT 6958846, 5 UNION ALL SELECT 6958846, 6 UNION ALL SELECT 6958846, 7 UNION ALL SELECT 6958846, 8 UNION ALL SELECT 6958846, 9 UNION ALL SELECT 6958846, 10 UNION ALL SELECT 6958846, 11 UNION ALL SELECT 6958846, 12 UNION ALL SELECT 6958846, 13 UNION ALL SELECT 6958846, 14 UNION ALL SELECT 6958846, 15 UNION ALL SELECT 6958846, 16 UNION ALL SELECT 6958846, 17 UNION ALL SELECT 6958846, 18 UNION ALL SELECT 6 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Parse: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Bind: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: D message 2023-03-27 00:00:06: pid 18553: LOG: statement: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Execute: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18553: LOG: statement: COMMIT 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18553: LOG: statement: DISCARD ALL 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 0 backend pid: 1020456 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18553: LOG: DB node id: 1 backend pid: 2442335 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18503: LOG: new connection received 2023-03-27 00:00:06: pid 18503: DETAIL: connecting host=10.0.0.20 port=36774 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18941: LOG: statement: COMMIT 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18941: LOG: statement: DISCARD ALL 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 0 backend pid: 1020455 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18736: LOG: new connection received 2023-03-27 00:00:06: pid 18736: DETAIL: connecting host=10.0.0.20 port=36790 2023-03-27 00:00:06: pid 18941: LOG: DB node id: 1 backend pid: 2442334 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18503: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18503: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18503: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: SELECT version() 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 0 backend pid: 1020457 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 0 backend pid: 1020457 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18503: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 0 backend pid: 1020457 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 0 backend pid: 1020457 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 0 backend pid: 1020457 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18503: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 0 backend pid: 1020457 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18736: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18736: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18736: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn_log"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 0 backend pid: 1020457 statement: Parse: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, targettype, product_model, target_line, device_code, fixture_sn, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_sn_log WHERE cdt > '2023-03-25 06:09:07.177398' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 0 backend pid: 1020457 statement: D message 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: SELECT version() 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 0 backend pid: 1020458 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 0 backend pid: 1020458 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18736: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 0 backend pid: 1020458 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 0 backend pid: 1020458 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 0 backend pid: 1020458 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18736: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 0 backend pid: 1020458 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142403 AS oid , 1 AS attnum UNION ALL SELECT 5142403, 2 UNION ALL SELECT 5142403, 3 UNION ALL SELECT 5142403, 4 UNION ALL SELECT 5142403, 5 UNION ALL SELECT 5142403, 6 UNION ALL SELECT 5142403, 7 UNION ALL SELECT 5142403, 8 UNION ALL SELECT 5142403, 9 UNION ALL SELECT 5142403, 10 UNION ALL SELECT 5142403, 11 UNION ALL SELECT 5142403, 12 UNION ALL SELECT 5142403, 13 UNION ALL SELECT 5142403, 14 UNION ALL SELECT 5142403, 15 UNION ALL SELECT 5142403, 16 UNION ALL SELECT 5142403, 17 UNION ALL SELECT 5142403, 18 UNION ALL SELECT 514 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142403 AS oid , 1 AS attnum UNION ALL SELECT 5142403, 2 UNION ALL SELECT 5142403, 3 UNION ALL SELECT 5142403, 4 UNION ALL SELECT 5142403, 5 UNION ALL SELECT 5142403, 6 UNION ALL SELECT 5142403, 7 UNION ALL SELECT 5142403, 8 UNION ALL SELECT 5142403, 9 UNION ALL SELECT 5142403, 10 UNION ALL SELECT 5142403, 11 UNION ALL SELECT 5142403, 12 UNION ALL SELECT 5142403, 13 UNION ALL SELECT 5142403, 14 UNION ALL SELECT 5142403, 15 UNION ALL SELECT 5142403, 16 UNION ALL SELECT 5142403, 17 UNION ALL SELECT 5142403, 18 UNION ALL SELECT 5142 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: D message 2023-03-27 00:00:06: pid 18503: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142403 AS oid , 1 AS attnum UNION ALL SELECT 5142403, 2 UNION ALL SELECT 5142403, 3 UNION ALL SELECT 5142403, 4 UNION ALL SELECT 5142403, 5 UNION ALL SELECT 5142403, 6 UNION ALL SELECT 5142403, 7 UNION ALL SELECT 5142403, 8 UNION ALL SELECT 5142403, 9 UNION ALL SELECT 5142403, 10 UNION ALL SELECT 5142403, 11 UNION ALL SELECT 5142403, 12 UNION ALL SELECT 5142403, 13 UNION ALL SELECT 5142403, 14 UNION ALL SELECT 5142403, 15 UNION ALL SELECT 5142403, 16 UNION ALL SELECT 5142403, 17 UNION ALL SELECT 5142403, 18 UNION ALL SELECT 5142403, 19 UNION ALL SELECT 5142403, 20 UNION ALL SELECT 5142403, 21) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142403 AS oid , 1 AS attnum UNION ALL SELECT 5142403, 2 UNION ALL SELECT 5142403, 3 UNION ALL SELECT 5142403, 4 UNION ALL SELECT 5142403, 5 UNION ALL SELECT 5142403, 6 UNION ALL SELECT 5142403, 7 UNION ALL SELECT 5142403, 8 UNION ALL SELECT 5142403, 9 UNION ALL SELECT 5142403, 10 UNION ALL SELECT 5142403, 11 UNION ALL SELECT 5142403, 12 UNION ALL SELECT 5142403, 13 UNION ALL SELECT 5142403, 14 UNION ALL SELECT 5142403, 15 UNION ALL SELECT 5142403, 16 UNION ALL SELECT 5142403, 17 UNION ALL SELECT 5142403, 18 UNION ALL SELECT 5 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_sn_specialkeys"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 0 backend pid: 1020458 statement: Parse: SELECT plt_currentprocess, plt_oid, plt_owner, plt_lastmodifytime, plt_lastmodifier, plt_id, plt_createtime, plt_creator, sn, plt_fixturesnoid, e01ksnloadcfg, e015snloadcfg, ktsbt, plt_ntexpiredate, ktiscr, e037snloadcfg, e386snloadcfg, e01wsnloadcfg, e085snloadcfg, e060snloadcfg, e050snloadcfg, e0lcsnloadcfg, e020snloadcfg, e014snloadcfg, e055snloadcfg, plt_zsspcbcolor, plt_zmspcbcolor, plt_zmwpcbcolor, plt_zswpcbcolor, pn, e018snloadcfg, e01tsnloadcfg, e021snloadcfg, e02bsnloadcfg, e02rsnloadcfg, e075snloadcfg, e0b1snloadcfg, e55msnloadcfg, e55qsnloadcfg, e66rsnloadcfg, plt_atiscr FROM report.v_fixture_sn_specialkeys WHERE plt_lastmodifytime > '2023-03-24 16:21:15.839173' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 0 backend pid: 1020458 statement: D message 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6958846 AS oid , 1 AS attnum UNION ALL SELECT 6958846, 2 UNION ALL SELECT 6958846, 3 UNION ALL SELECT 6958846, 4 UNION ALL SELECT 6958846, 5 UNION ALL SELECT 6958846, 6 UNION ALL SELECT 6958846, 7 UNION ALL SELECT 6958846, 8 UNION ALL SELECT 6958846, 9 UNION ALL SELECT 6958846, 10 UNION ALL SELECT 6958846, 11 UNION ALL SELECT 6958846, 12 UNION ALL SELECT 6958846, 13 UNION ALL SELECT 6958846, 14 UNION ALL SELECT 6958846, 15 UNION ALL SELECT 6958846, 16 UNION ALL SELECT 6958846, 17 UNION ALL SELECT 6958846, 18 UNION ALL SELECT 695 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6958846 AS oid , 1 AS attnum UNION ALL SELECT 6958846, 2 UNION ALL SELECT 6958846, 3 UNION ALL SELECT 6958846, 4 UNION ALL SELECT 6958846, 5 UNION ALL SELECT 6958846, 6 UNION ALL SELECT 6958846, 7 UNION ALL SELECT 6958846, 8 UNION ALL SELECT 6958846, 9 UNION ALL SELECT 6958846, 10 UNION ALL SELECT 6958846, 11 UNION ALL SELECT 6958846, 12 UNION ALL SELECT 6958846, 13 UNION ALL SELECT 6958846, 14 UNION ALL SELECT 6958846, 15 UNION ALL SELECT 6958846, 16 UNION ALL SELECT 6958846, 17 UNION ALL SELECT 6958846, 18 UNION ALL SELECT 6958 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: D message 2023-03-27 00:00:06: pid 18736: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6958846 AS oid , 1 AS attnum UNION ALL SELECT 6958846, 2 UNION ALL SELECT 6958846, 3 UNION ALL SELECT 6958846, 4 UNION ALL SELECT 6958846, 5 UNION ALL SELECT 6958846, 6 UNION ALL SELECT 6958846, 7 UNION ALL SELECT 6958846, 8 UNION ALL SELECT 6958846, 9 UNION ALL SELECT 6958846, 10 UNION ALL SELECT 6958846, 11 UNION ALL SELECT 6958846, 12 UNION ALL SELECT 6958846, 13 UNION ALL SELECT 6958846, 14 UNION ALL SELECT 6958846, 15 UNION ALL SELECT 6958846, 16 UNION ALL SELECT 6958846, 17 UNION ALL SELECT 6958846, 18 UNION ALL SELECT 6958846, 19 UNION ALL SELECT 6958846, 20 UNION ALL SELECT 6958846, 21 UNION ALL SELECT 6958846, 22 UNION ALL SELECT 6958846, 23 UNION ALL SELECT 6958846, 24 UNION ALL SELECT 6958846, 25 UNION ALL SELECT 6958846, 26 UNION ALL SELECT 6958846, 27 UNION ALL SELECT 6958846, 28 UNION ALL SELECT 6958846, 29 UNION ALL SELECT 6958846, 30 UNION ALL SELECT 6958846, 31 UNION ALL SELECT 6958846, 32 UNION ALL SELECT 6958846, 33 UNION ALL SELECT 6958846, 34 UNION ALL SELECT 6958846, 35 UNION ALL SELECT 6958846, 36 UNION ALL SELECT 6958846, 37 UNION ALL SELECT 6958846, 38 UNION ALL SELECT 6958846, 39 UNION ALL SELECT 6958846, 40 UNION ALL SELECT 6958846, 41) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6958846 AS oid , 1 AS attnum UNION ALL SELECT 6958846, 2 UNION ALL SELECT 6958846, 3 UNION ALL SELECT 6958846, 4 UNION ALL SELECT 6958846, 5 UNION ALL SELECT 6958846, 6 UNION ALL SELECT 6958846, 7 UNION ALL SELECT 6958846, 8 UNION ALL SELECT 6958846, 9 UNION ALL SELECT 6958846, 10 UNION ALL SELECT 6958846, 11 UNION ALL SELECT 6958846, 12 UNION ALL SELECT 6958846, 13 UNION ALL SELECT 6958846, 14 UNION ALL SELECT 6958846, 15 UNION ALL SELECT 6958846, 16 UNION ALL SELECT 6958846, 17 UNION ALL SELECT 6958846, 18 UNION ALL SELECT 6 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Parse: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Bind: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: D message 2023-03-27 00:00:06: pid 18503: LOG: statement: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Execute: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Parse: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Bind: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: D message 2023-03-27 00:00:06: pid 18503: LOG: statement: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: Execute: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:06: pid 18503: LOG: statement: DISCARD ALL 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 0 backend pid: 1020457 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18503: LOG: DB node id: 1 backend pid: 2442341 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: C message 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: C message 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7142684 AS oid , 1 AS attnum UNION ALL SELECT 7142684, 2 UNION ALL SELECT 7142684, 3 UNION ALL SELECT 7142684, 4 UNION ALL SELECT 7142684, 5 UNION ALL SELECT 7142684, 6 UNION ALL SELECT 7142684, 7 UNION ALL SELECT 7142684, 8 UNION ALL SELECT 7142684, 9 UNION ALL SELECT 7142684, 10 UNION ALL SELECT 7142684, 11 UNION ALL SELECT 7142684, 12 UNION ALL SELECT 7142684, 13 UNION ALL SELECT 7142684, 14 UNION ALL SELECT 7142684, 15 UNION ALL SELECT 7142684, 16 UNION ALL SELECT 7142684, 17 UNION ALL SELECT 7142684, 18 UNION ALL SELECT 714 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7142684 AS oid , 1 AS attnum UNION ALL SELECT 7142684, 2 UNION ALL SELECT 7142684, 3 UNION ALL SELECT 7142684, 4 UNION ALL SELECT 7142684, 5 UNION ALL SELECT 7142684, 6 UNION ALL SELECT 7142684, 7 UNION ALL SELECT 7142684, 8 UNION ALL SELECT 7142684, 9 UNION ALL SELECT 7142684, 10 UNION ALL SELECT 7142684, 11 UNION ALL SELECT 7142684, 12 UNION ALL SELECT 7142684, 13 UNION ALL SELECT 7142684, 14 UNION ALL SELECT 7142684, 15 UNION ALL SELECT 7142684, 16 UNION ALL SELECT 7142684, 17 UNION ALL SELECT 7142684, 18 UNION ALL SELECT 7142 2023-03-27 00:00:06: pid 18736: LOG: statement: DISCARD ALL 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: D message 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 0 backend pid: 1020458 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18635: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7142684 AS oid , 1 AS attnum UNION ALL SELECT 7142684, 2 UNION ALL SELECT 7142684, 3 UNION ALL SELECT 7142684, 4 UNION ALL SELECT 7142684, 5 UNION ALL SELECT 7142684, 6 UNION ALL SELECT 7142684, 7 UNION ALL SELECT 7142684, 8 UNION ALL SELECT 7142684, 9 UNION ALL SELECT 7142684, 10 UNION ALL SELECT 7142684, 11 UNION ALL SELECT 7142684, 12 UNION ALL SELECT 7142684, 13 UNION ALL SELECT 7142684, 14 UNION ALL SELECT 7142684, 15 UNION ALL SELECT 7142684, 16 UNION ALL SELECT 7142684, 17 UNION ALL SELECT 7142684, 18 UNION ALL SELECT 7142684, 19) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7142684 AS oid , 1 AS attnum UNION ALL SELECT 7142684, 2 UNION ALL SELECT 7142684, 3 UNION ALL SELECT 7142684, 4 UNION ALL SELECT 7142684, 5 UNION ALL SELECT 7142684, 6 UNION ALL SELECT 7142684, 7 UNION ALL SELECT 7142684, 8 UNION ALL SELECT 7142684, 9 UNION ALL SELECT 7142684, 10 UNION ALL SELECT 7142684, 11 UNION ALL SELECT 7142684, 12 UNION ALL SELECT 7142684, 13 UNION ALL SELECT 7142684, 14 UNION ALL SELECT 7142684, 15 UNION ALL SELECT 7142684, 16 UNION ALL SELECT 7142684, 17 UNION ALL SELECT 7142684, 18 UNION ALL SELECT 7 2023-03-27 00:00:06: pid 18736: LOG: DB node id: 1 backend pid: 2442342 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18635: LOG: statement: COMMIT 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18635: LOG: statement: DISCARD ALL 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 0 backend pid: 1020454 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18635: LOG: DB node id: 1 backend pid: 2442333 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18403: LOG: new connection received 2023-03-27 00:00:06: pid 18403: DETAIL: connecting host=10.0.0.20 port=36798 2023-03-27 00:00:06: pid 18403: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18403: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18403: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:06: pid 18044: LOG: new connection received 2023-03-27 00:00:06: pid 18044: DETAIL: connecting host=10.0.0.20 port=36802 2023-03-27 00:00:06: pid 18044: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18044: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18044: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: SELECT version() 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18403: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18403: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: SELECT version() 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18044: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18403: LOG: statement: BEGIN 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18044: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_pn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Parse: SELECT oid, owner, id, lastmodifytime, lastmodifier, createtime, creator, sn, pn, productiondate, snlocation, pnlocation, location, vendorsn, enabled, status, remark, fixturecode, fixturetype, fixturetypedesc, subtype, subtypename, subtypedesc, fixturever, pcaver, pcbver, productmodel, sharemodel, boardtype, pntag, productname, bu, ismultistorage, isusagecontrol, limittype, action, line, shift, stockoutmodel, lastreceiver, usecount, usetime, totalcount, totaltime, statusdesc, stockoutmode, supportcr, ledstatus, expireddate, imagetype, spec, hasparam FROM report.v_fixture_pn WHERE lastmodifytime > '2023-03-26 07:15:15.095158' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Bind: SELECT oid, owner, id, lastmodifytime, lastmodifier, createtime, creator, sn, pn, productiondate, snlocation, pnlocation, location, vendorsn, enabled, status, remark, fixturecode, fixturetype, fixturetypedesc, subtype, subtypename, subtypedesc, fixturever, pcaver, pcbver, productmodel, sharemodel, boardtype, pntag, productname, bu, ismultistorage, isusagecontrol, limittype, action, line, shift, stockoutmodel, lastreceiver, usecount, usetime, totalcount, totaltime, statusdesc, stockoutmode, supportcr, ledstatus, expireddate, imagetype, spec, hasparam FROM report.v_fixture_pn WHERE lastmodifytime > '2023-03-26 07:15:15.095158' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: D message 2023-03-27 00:00:06: pid 18403: LOG: statement: SELECT oid, owner, id, lastmodifytime, lastmodifier, createtime, creator, sn, pn, productiondate, snlocation, pnlocation, location, vendorsn, enabled, status, remark, fixturecode, fixturetype, fixturetypedesc, subtype, subtypename, subtypedesc, fixturever, pcaver, pcbver, productmodel, sharemodel, boardtype, pntag, productname, bu, ismultistorage, isusagecontrol, limittype, action, line, shift, stockoutmodel, lastreceiver, usecount, usetime, totalcount, totaltime, statusdesc, stockoutmode, supportcr, ledstatus, expireddate, imagetype, spec, hasparam FROM report.v_fixture_pn WHERE lastmodifytime > '2023-03-26 07:15:15.095158' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Execute: SELECT oid, owner, id, lastmodifytime, lastmodifier, createtime, creator, sn, pn, productiondate, snlocation, pnlocation, location, vendorsn, enabled, status, remark, fixturecode, fixturetype, fixturetypedesc, subtype, subtypename, subtypedesc, fixturever, pcaver, pcbver, productmodel, sharemodel, boardtype, pntag, productname, bu, ismultistorage, isusagecontrol, limittype, action, line, shift, stockoutmodel, lastreceiver, usecount, usetime, totalcount, totaltime, statusdesc, stockoutmode, supportcr, ledstatus, expireddate, imagetype, spec, hasparam FROM report.v_fixture_pn WHERE lastmodifytime > '2023-03-26 07:15:15.095158' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Parse: BEGIN 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Bind: BEGIN 2023-03-27 00:00:06: pid 18044: LOG: statement: BEGIN 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Execute: BEGIN 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_contract"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Parse: SELECT oid, product_name, product_model, pn, fixture_type, model_ver, qty, creator, builddate, contractor, pechecker, status, nexttask, cdt FROM report.v_contract WHERE 1 > '-1' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Bind: SELECT oid, product_name, product_model, pn, fixture_type, model_ver, qty, creator, builddate, contractor, pechecker, status, nexttask, cdt FROM report.v_contract WHERE 1 > '-1' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: D message 2023-03-27 00:00:06: pid 18044: LOG: statement: SELECT oid, product_name, product_model, pn, fixture_type, model_ver, qty, creator, builddate, contractor, pechecker, status, nexttask, cdt FROM report.v_contract WHERE 1 > '-1' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Execute: SELECT oid, product_name, product_model, pn, fixture_type, model_ver, qty, creator, builddate, contractor, pechecker, status, nexttask, cdt FROM report.v_contract WHERE 1 > '-1' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: C message 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: C message 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7180725 AS oid , 1 AS attnum UNION ALL SELECT 7180725, 2 UNION ALL SELECT 7180725, 3 UNION ALL SELECT 7180725, 4 UNION ALL SELECT 7180725, 5 UNION ALL SELECT 7180725, 6 UNION ALL SELECT 7180725, 7 UNION ALL SELECT 7180725, 8 UNION ALL SELECT 7180725, 9 UNION ALL SELECT 7180725, 10 UNION ALL SELECT 7180725, 11 UNION ALL SELECT 7180725, 12 UNION ALL SELECT 7180725, 13 UNION ALL SELECT 7180725, 14 UNION ALL SELECT 7180725, 15 UNION ALL SELECT 7180725, 16 UNION ALL SELECT 7180725, 17 UNION ALL SELECT 7180725, 18 UNION ALL SELECT 718 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7180725 AS oid , 1 AS attnum UNION ALL SELECT 7180725, 2 UNION ALL SELECT 7180725, 3 UNION ALL SELECT 7180725, 4 UNION ALL SELECT 7180725, 5 UNION ALL SELECT 7180725, 6 UNION ALL SELECT 7180725, 7 UNION ALL SELECT 7180725, 8 UNION ALL SELECT 7180725, 9 UNION ALL SELECT 7180725, 10 UNION ALL SELECT 7180725, 11 UNION ALL SELECT 7180725, 12 UNION ALL SELECT 7180725, 13 UNION ALL SELECT 7180725, 14 UNION ALL SELECT 7180725, 15 UNION ALL SELECT 7180725, 16 UNION ALL SELECT 7180725, 17 UNION ALL SELECT 7180725, 18 UNION ALL SELECT 7180 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: D message 2023-03-27 00:00:06: pid 18403: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7180725 AS oid , 1 AS attnum UNION ALL SELECT 7180725, 2 UNION ALL SELECT 7180725, 3 UNION ALL SELECT 7180725, 4 UNION ALL SELECT 7180725, 5 UNION ALL SELECT 7180725, 6 UNION ALL SELECT 7180725, 7 UNION ALL SELECT 7180725, 8 UNION ALL SELECT 7180725, 9 UNION ALL SELECT 7180725, 10 UNION ALL SELECT 7180725, 11 UNION ALL SELECT 7180725, 12 UNION ALL SELECT 7180725, 13 UNION ALL SELECT 7180725, 14 UNION ALL SELECT 7180725, 15 UNION ALL SELECT 7180725, 16 UNION ALL SELECT 7180725, 17 UNION ALL SELECT 7180725, 18 UNION ALL SELECT 7180725, 19 UNION ALL SELECT 7180725, 20 UNION ALL SELECT 7180725, 21 UNION ALL SELECT 7180725, 22 UNION ALL SELECT 7180725, 23 UNION ALL SELECT 7180725, 24 UNION ALL SELECT 7180725, 25 UNION ALL SELECT 7180725, 26 UNION ALL SELECT 7180725, 27 UNION ALL SELECT 7180725, 28 UNION ALL SELECT 7180725, 29 UNION ALL SELECT 7180725, 30 UNION ALL SELECT 7180725, 31 UNION ALL SELECT 7180725, 32 UNION ALL SELECT 7180725, 33 UNION ALL SELECT 7180725, 34 UNION ALL SELECT 7180725, 35 UNION ALL SELECT 7180725, 36 UNION ALL SELECT 7180725, 37 UNION ALL SELECT 7180725, 38 UNION ALL SELECT 7180725, 39 UNION ALL SELECT 7180725, 40 UNION ALL SELECT 7180725, 41 UNION ALL SELECT 7180725, 42 UNION ALL SELECT 7180725, 43 UNION ALL SELECT 7180725, 44 UNION ALL SELECT 7180725, 45 UNION ALL SELECT 7180725, 46 UNION ALL SELECT 7180725, 47 UNION ALL SELECT 7180725, 48 UNION ALL SELECT 7180725, 49 UNION ALL SELECT 7180725, 50 UNION ALL SELECT 7180725, 51 UNION ALL SELECT 7180725, 52) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7180725 AS oid , 1 AS attnum UNION ALL SELECT 7180725, 2 UNION ALL SELECT 7180725, 3 UNION ALL SELECT 7180725, 4 UNION ALL SELECT 7180725, 5 UNION ALL SELECT 7180725, 6 UNION ALL SELECT 7180725, 7 UNION ALL SELECT 7180725, 8 UNION ALL SELECT 7180725, 9 UNION ALL SELECT 7180725, 10 UNION ALL SELECT 7180725, 11 UNION ALL SELECT 7180725, 12 UNION ALL SELECT 7180725, 13 UNION ALL SELECT 7180725, 14 UNION ALL SELECT 7180725, 15 UNION ALL SELECT 7180725, 16 UNION ALL SELECT 7180725, 17 UNION ALL SELECT 7180725, 18 UNION ALL SELECT 7 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18403: LOG: statement: COMMIT 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18403: LOG: statement: DISCARD ALL 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 0 backend pid: 1020459 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18403: LOG: DB node id: 1 backend pid: 2442344 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18927: LOG: new connection received 2023-03-27 00:00:06: pid 18927: DETAIL: connecting host=10.0.0.20 port=36806 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: C message 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: C message 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3280613 AS oid , 1 AS attnum UNION ALL SELECT 3280613, 2 UNION ALL SELECT 3280613, 3 UNION ALL SELECT 3280613, 4 UNION ALL SELECT 3280613, 5 UNION ALL SELECT 3280613, 6 UNION ALL SELECT 3280613, 7 UNION ALL SELECT 3280613, 8 UNION ALL SELECT 3280613, 9 UNION ALL SELECT 3280613, 10 UNION ALL SELECT 3280613, 11 UNION ALL SELECT 3280613, 12 UNION ALL SELECT 3280613, 13 UNION ALL SELECT 3280613, 14) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3280613 AS oid , 1 AS attnum UNION ALL SELECT 3280613, 2 UNION ALL SELECT 3280613, 3 UNION ALL SELECT 3280613, 4 UNION ALL SELECT 3280613, 5 UNION ALL SELECT 3280613, 6 UNION ALL SELECT 3280613, 7 UNION ALL SELECT 3280613, 8 UNION ALL SELECT 3280613, 9 UNION ALL SELECT 3280613, 10 UNION ALL SELECT 3280613, 11 UNION ALL SELECT 3280613, 12 UNION ALL SELECT 3280613, 13 UNION ALL SELECT 3280613, 14) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: D message 2023-03-27 00:00:06: pid 18044: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3280613 AS oid , 1 AS attnum UNION ALL SELECT 3280613, 2 UNION ALL SELECT 3280613, 3 UNION ALL SELECT 3280613, 4 UNION ALL SELECT 3280613, 5 UNION ALL SELECT 3280613, 6 UNION ALL SELECT 3280613, 7 UNION ALL SELECT 3280613, 8 UNION ALL SELECT 3280613, 9 UNION ALL SELECT 3280613, 10 UNION ALL SELECT 3280613, 11 UNION ALL SELECT 3280613, 12 UNION ALL SELECT 3280613, 13 UNION ALL SELECT 3280613, 14) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3280613 AS oid , 1 AS attnum UNION ALL SELECT 3280613, 2 UNION ALL SELECT 3280613, 3 UNION ALL SELECT 3280613, 4 UNION ALL SELECT 3280613, 5 UNION ALL SELECT 3280613, 6 UNION ALL SELECT 3280613, 7 UNION ALL SELECT 3280613, 8 UNION ALL SELECT 3280613, 9 UNION ALL SELECT 3280613, 10 UNION ALL SELECT 3280613, 11 UNION ALL SELECT 3280613, 12 UNION ALL SELECT 3280613, 13 UNION ALL SELECT 3280613, 14) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18927: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18927: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18927: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: SELECT version() 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 0 backend pid: 1020461 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 0 backend pid: 1020461 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18927: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 0 backend pid: 1020461 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 0 backend pid: 1020461 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 0 backend pid: 1020461 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18927: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 0 backend pid: 1020461 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_pn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 0 backend pid: 1020461 statement: Parse: SELECT oid, owner, id, lastmodifytime, lastmodifier, createtime, creator, sn, pn, productiondate, snlocation, pnlocation, location, vendorsn, enabled, status, remark, fixturecode, fixturetype, fixturetypedesc, subtype, subtypename, subtypedesc, fixturever, pcaver, pcbver, productmodel, sharemodel, boardtype, pntag, productname, bu, ismultistorage, isusagecontrol, limittype, action, line, shift, stockoutmodel, lastreceiver, usecount, usetime, totalcount, totaltime, statusdesc, stockoutmode, supportcr, ledstatus, expireddate, imagetype, spec, hasparam FROM report.v_fixture_pn WHERE lastmodifytime > '2023-03-26 07:15:15.095158' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 0 backend pid: 1020461 statement: D message 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18044: LOG: statement: COMMIT 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18044: LOG: statement: DISCARD ALL 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 0 backend pid: 1020460 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18044: LOG: DB node id: 1 backend pid: 2442345 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: C message 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: C message 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7180725 AS oid , 1 AS attnum UNION ALL SELECT 7180725, 2 UNION ALL SELECT 7180725, 3 UNION ALL SELECT 7180725, 4 UNION ALL SELECT 7180725, 5 UNION ALL SELECT 7180725, 6 UNION ALL SELECT 7180725, 7 UNION ALL SELECT 7180725, 8 UNION ALL SELECT 7180725, 9 UNION ALL SELECT 7180725, 10 UNION ALL SELECT 7180725, 11 UNION ALL SELECT 7180725, 12 UNION ALL SELECT 7180725, 13 UNION ALL SELECT 7180725, 14 UNION ALL SELECT 7180725, 15 UNION ALL SELECT 7180725, 16 UNION ALL SELECT 7180725, 17 UNION ALL SELECT 7180725, 18 UNION ALL SELECT 718 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7180725 AS oid , 1 AS attnum UNION ALL SELECT 7180725, 2 UNION ALL SELECT 7180725, 3 UNION ALL SELECT 7180725, 4 UNION ALL SELECT 7180725, 5 UNION ALL SELECT 7180725, 6 UNION ALL SELECT 7180725, 7 UNION ALL SELECT 7180725, 8 UNION ALL SELECT 7180725, 9 UNION ALL SELECT 7180725, 10 UNION ALL SELECT 7180725, 11 UNION ALL SELECT 7180725, 12 UNION ALL SELECT 7180725, 13 UNION ALL SELECT 7180725, 14 UNION ALL SELECT 7180725, 15 UNION ALL SELECT 7180725, 16 UNION ALL SELECT 7180725, 17 UNION ALL SELECT 7180725, 18 UNION ALL SELECT 7180 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: D message 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18927: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7180725 AS oid , 1 AS attnum UNION ALL SELECT 7180725, 2 UNION ALL SELECT 7180725, 3 UNION ALL SELECT 7180725, 4 UNION ALL SELECT 7180725, 5 UNION ALL SELECT 7180725, 6 UNION ALL SELECT 7180725, 7 UNION ALL SELECT 7180725, 8 UNION ALL SELECT 7180725, 9 UNION ALL SELECT 7180725, 10 UNION ALL SELECT 7180725, 11 UNION ALL SELECT 7180725, 12 UNION ALL SELECT 7180725, 13 UNION ALL SELECT 7180725, 14 UNION ALL SELECT 7180725, 15 UNION ALL SELECT 7180725, 16 UNION ALL SELECT 7180725, 17 UNION ALL SELECT 7180725, 18 UNION ALL SELECT 7180725, 19 UNION ALL SELECT 7180725, 20 UNION ALL SELECT 7180725, 21 UNION ALL SELECT 7180725, 22 UNION ALL SELECT 7180725, 23 UNION ALL SELECT 7180725, 24 UNION ALL SELECT 7180725, 25 UNION ALL SELECT 7180725, 26 UNION ALL SELECT 7180725, 27 UNION ALL SELECT 7180725, 28 UNION ALL SELECT 7180725, 29 UNION ALL SELECT 7180725, 30 UNION ALL SELECT 7180725, 31 UNION ALL SELECT 7180725, 32 UNION ALL SELECT 7180725, 33 UNION ALL SELECT 7180725, 34 UNION ALL SELECT 7180725, 35 UNION ALL SELECT 7180725, 36 UNION ALL SELECT 7180725, 37 UNION ALL SELECT 7180725, 38 UNION ALL SELECT 7180725, 39 UNION ALL SELECT 7180725, 40 UNION ALL SELECT 7180725, 41 UNION ALL SELECT 7180725, 42 UNION ALL SELECT 7180725, 43 UNION ALL SELECT 7180725, 44 UNION ALL SELECT 7180725, 45 UNION ALL SELECT 7180725, 46 UNION ALL SELECT 7180725, 47 UNION ALL SELECT 7180725, 48 UNION ALL SELECT 7180725, 49 UNION ALL SELECT 7180725, 50 UNION ALL SELECT 7180725, 51 UNION ALL SELECT 7180725, 52) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7180725 AS oid , 1 AS attnum UNION ALL SELECT 7180725, 2 UNION ALL SELECT 7180725, 3 UNION ALL SELECT 7180725, 4 UNION ALL SELECT 7180725, 5 UNION ALL SELECT 7180725, 6 UNION ALL SELECT 7180725, 7 UNION ALL SELECT 7180725, 8 UNION ALL SELECT 7180725, 9 UNION ALL SELECT 7180725, 10 UNION ALL SELECT 7180725, 11 UNION ALL SELECT 7180725, 12 UNION ALL SELECT 7180725, 13 UNION ALL SELECT 7180725, 14 UNION ALL SELECT 7180725, 15 UNION ALL SELECT 7180725, 16 UNION ALL SELECT 7180725, 17 UNION ALL SELECT 7180725, 18 UNION ALL SELECT 7 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7525286 AS oid , 1 AS attnum UNION ALL SELECT 7525286, 2 UNION ALL SELECT 7525286, 3 UNION ALL SELECT 7525286, 4 UNION ALL SELECT 7525286, 5 UNION ALL SELECT 7525286, 6 UNION ALL SELECT 7525286, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7525286 AS oid , 1 AS attnum UNION ALL SELECT 7525286, 2 UNION ALL SELECT 7525286, 3 UNION ALL SELECT 7525286, 4 UNION ALL SELECT 7525286, 5 UNION ALL SELECT 7525286, 6 UNION ALL SELECT 7525286, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: D message 2023-03-27 00:00:06: pid 18564: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7525286 AS oid , 1 AS attnum UNION ALL SELECT 7525286, 2 UNION ALL SELECT 7525286, 3 UNION ALL SELECT 7525286, 4 UNION ALL SELECT 7525286, 5 UNION ALL SELECT 7525286, 6 UNION ALL SELECT 7525286, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7525286 AS oid , 1 AS attnum UNION ALL SELECT 7525286, 2 UNION ALL SELECT 7525286, 3 UNION ALL SELECT 7525286, 4 UNION ALL SELECT 7525286, 5 UNION ALL SELECT 7525286, 6 UNION ALL SELECT 7525286, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:06: pid 18927: LOG: statement: DISCARD ALL 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 0 backend pid: 1020461 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18927: LOG: DB node id: 1 backend pid: 2442346 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Parse: COMMIT 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Bind: COMMIT 2023-03-27 00:00:06: pid 18564: LOG: statement: COMMIT 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: Execute: COMMIT 2023-03-27 00:00:06: pid 18564: LOG: statement: DISCARD ALL 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 0 backend pid: 1020453 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18564: LOG: DB node id: 1 backend pid: 2442332 statement: DISCARD ALL 2023-03-27 00:00:06: pid 18774: LOG: new connection received 2023-03-27 00:00:06: pid 18774: DETAIL: connecting host=10.0.0.20 port=36810 2023-03-27 00:00:06: pid 18774: LOG: using clear text authentication with frontend 2023-03-27 00:00:06: pid 18774: DETAIL: backend will still use md5 auth 2023-03-27 00:00:06: pid 18774: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:07: pid 19029: LOG: new connection received 2023-03-27 00:00:07: pid 19029: DETAIL: connecting host=10.0.0.20 port=36816 2023-03-27 00:00:07: pid 18572: LOG: new connection received 2023-03-27 00:00:07: pid 18572: DETAIL: connecting host=10.0.0.20 port=36824 2023-03-27 00:00:07: pid 18481: LOG: new connection received 2023-03-27 00:00:07: pid 18481: DETAIL: connecting host=10.0.0.20 port=36836 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: SELECT version() 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18774: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18774: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18481: LOG: using clear text authentication with frontend 2023-03-27 00:00:07: pid 18481: DETAIL: backend will still use md5 auth 2023-03-27 00:00:07: pid 18481: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:07: pid 18572: LOG: using clear text authentication with frontend 2023-03-27 00:00:07: pid 18572: DETAIL: backend will still use md5 auth 2023-03-27 00:00:07: pid 18572: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:07: pid 19029: LOG: using clear text authentication with frontend 2023-03-27 00:00:07: pid 19029: DETAIL: backend will still use md5 auth 2023-03-27 00:00:07: pid 19029: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 18774: LOG: statement: BEGIN 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_preparerule"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Parse: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: SELECT version() 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Bind: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: D message 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18481: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: SELECT version() 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 19029: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: SELECT version() 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18572: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18481: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 19029: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18572: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 19029: LOG: statement: BEGIN 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 18572: LOG: statement: BEGIN 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_pn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Parse: SELECT oid, pn, spec, unit, withsn, catalog, category, department, enabled, deleted, stock_qty, safety_qty, price, ws, charger, family, location, iscustomerspare, safety_alarm_time, expiration_days, purchase_cycle, min_purchase_qty, price_modify_time, lastout, remark, creator, cdt, udt FROM report.v_spare_pn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Bind: SELECT oid, pn, spec, unit, withsn, catalog, category, department, enabled, deleted, stock_qty, safety_qty, price, ws, charger, family, location, iscustomerspare, safety_alarm_time, expiration_days, purchase_cycle, min_purchase_qty, price_modify_time, lastout, remark, creator, cdt, udt FROM report.v_spare_pn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: D message 2023-03-27 00:00:07: pid 19029: LOG: statement: SELECT oid, pn, spec, unit, withsn, catalog, category, department, enabled, deleted, stock_qty, safety_qty, price, ws, charger, family, location, iscustomerspare, safety_alarm_time, expiration_days, purchase_cycle, min_purchase_qty, price_modify_time, lastout, remark, creator, cdt, udt FROM report.v_spare_pn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Execute: SELECT oid, pn, spec, unit, withsn, catalog, category, department, enabled, deleted, stock_qty, safety_qty, price, ws, charger, family, location, iscustomerspare, safety_alarm_time, expiration_days, purchase_cycle, min_purchase_qty, price_modify_time, lastout, remark, creator, cdt, udt FROM report.v_spare_pn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 18481: LOG: statement: BEGIN 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_deviceinfo"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Parse: SELECT oid, alias_sn, manufature_sn, asset_number, purchase_date, warranty, comment, moveable, device_status, cdt, udt, image_id, department, device_code, device_name, device_model, device_type, device_class FROM report.v_deviceinfo WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Bind: SELECT oid, alias_sn, manufature_sn, asset_number, purchase_date, warranty, comment, moveable, device_status, cdt, udt, image_id, department, device_code, device_name, device_model, device_type, device_class FROM report.v_deviceinfo WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: D message 2023-03-27 00:00:07: pid 18572: LOG: statement: SELECT oid, alias_sn, manufature_sn, asset_number, purchase_date, warranty, comment, moveable, device_status, cdt, udt, image_id, department, device_code, device_name, device_model, device_type, device_class FROM report.v_deviceinfo WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Execute: SELECT oid, alias_sn, manufature_sn, asset_number, purchase_date, warranty, comment, moveable, device_status, cdt, udt, image_id, department, device_code, device_name, device_model, device_type, device_class FROM report.v_deviceinfo WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_pn_log"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Parse: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, qty, balance_qty, price, cost, costcenter, targettype, productoid, targetline, deviceoid, fixtureoid, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_pn_log WHERE cdt > '2023-03-25 06:46:35.544497' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Bind: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, qty, balance_qty, price, cost, costcenter, targettype, productoid, targetline, deviceoid, fixtureoid, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_pn_log WHERE cdt > '2023-03-25 06:46:35.544497' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: D message 2023-03-27 00:00:07: pid 18481: LOG: statement: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, qty, balance_qty, price, cost, costcenter, targettype, productoid, targetline, deviceoid, fixtureoid, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_pn_log WHERE cdt > '2023-03-25 06:46:35.544497' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Execute: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, qty, balance_qty, price, cost, costcenter, targettype, productoid, targetline, deviceoid, fixtureoid, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_pn_log WHERE cdt > '2023-03-25 06:46:35.544497' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: C message 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: C message 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6759542 AS oid , 1 AS attnum UNION ALL SELECT 6759542, 2 UNION ALL SELECT 6759542, 3 UNION ALL SELECT 6759542, 4 UNION ALL SELECT 6759542, 5 UNION ALL SELECT 6759542, 6 UNION ALL SELECT 6759542, 8 UNION ALL SELECT 6759542, 7 UNION ALL SELECT 6759542, 9 UNION ALL SELECT 6759542, 10 UNION ALL SELECT 6759542, 11 UNION ALL SELECT 6759542, 12 UNION ALL SELECT 6759542, 13 UNION ALL SELECT 6759542, 14 UNION ALL SELECT 6759542, 15 UNION ALL SELECT 6759542, 16 UNION ALL SELECT 6759542, 17 UNION ALL SELECT 6759542, 18) vals ON (c.oid = va 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6759542 AS oid , 1 AS attnum UNION ALL SELECT 6759542, 2 UNION ALL SELECT 6759542, 3 UNION ALL SELECT 6759542, 4 UNION ALL SELECT 6759542, 5 UNION ALL SELECT 6759542, 6 UNION ALL SELECT 6759542, 8 UNION ALL SELECT 6759542, 7 UNION ALL SELECT 6759542, 9 UNION ALL SELECT 6759542, 10 UNION ALL SELECT 6759542, 11 UNION ALL SELECT 6759542, 12 UNION ALL SELECT 6759542, 13 UNION ALL SELECT 6759542, 14 UNION ALL SELECT 6759542, 15 UNION ALL SELECT 6759542, 16 UNION ALL SELECT 6759542, 17 UNION ALL SELECT 6759542, 18) vals ON (c.oid = val 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: D message 2023-03-27 00:00:07: pid 18572: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6759542 AS oid , 1 AS attnum UNION ALL SELECT 6759542, 2 UNION ALL SELECT 6759542, 3 UNION ALL SELECT 6759542, 4 UNION ALL SELECT 6759542, 5 UNION ALL SELECT 6759542, 6 UNION ALL SELECT 6759542, 8 UNION ALL SELECT 6759542, 7 UNION ALL SELECT 6759542, 9 UNION ALL SELECT 6759542, 10 UNION ALL SELECT 6759542, 11 UNION ALL SELECT 6759542, 12 UNION ALL SELECT 6759542, 13 UNION ALL SELECT 6759542, 14 UNION ALL SELECT 6759542, 15 UNION ALL SELECT 6759542, 16 UNION ALL SELECT 6759542, 17 UNION ALL SELECT 6759542, 18) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6759542 AS oid , 1 AS attnum UNION ALL SELECT 6759542, 2 UNION ALL SELECT 6759542, 3 UNION ALL SELECT 6759542, 4 UNION ALL SELECT 6759542, 5 UNION ALL SELECT 6759542, 6 UNION ALL SELECT 6759542, 8 UNION ALL SELECT 6759542, 7 UNION ALL SELECT 6759542, 9 UNION ALL SELECT 6759542, 10 UNION ALL SELECT 6759542, 11 UNION ALL SELECT 6759542, 12 UNION ALL SELECT 6759542, 13 UNION ALL SELECT 6759542, 14 UNION ALL SELECT 6759542, 15 UNION ALL SELECT 6759542, 16 UNION ALL SELECT 6759542, 17 UNION ALL SELECT 6759542, 18) vals ON (c.oid = 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7212937 AS oid , 1 AS attnum UNION ALL SELECT 7212937, 2 UNION ALL SELECT 7212937, 3 UNION ALL SELECT 7212937, 4 UNION ALL SELECT 7212937, 5 UNION ALL SELECT 7212937, 6 UNION ALL SELECT 7212937, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7212937 AS oid , 1 AS attnum UNION ALL SELECT 7212937, 2 UNION ALL SELECT 7212937, 3 UNION ALL SELECT 7212937, 4 UNION ALL SELECT 7212937, 5 UNION ALL SELECT 7212937, 6 UNION ALL SELECT 7212937, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: D message 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7212937 AS oid , 1 AS attnum UNION ALL SELECT 7212937, 2 UNION ALL SELECT 7212937, 3 UNION ALL SELECT 7212937, 4 UNION ALL SELECT 7212937, 5 UNION ALL SELECT 7212937, 6 UNION ALL SELECT 7212937, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 7212937 AS oid , 1 AS attnum UNION ALL SELECT 7212937, 2 UNION ALL SELECT 7212937, 3 UNION ALL SELECT 7212937, 4 UNION ALL SELECT 7212937, 5 UNION ALL SELECT 7212937, 6 UNION ALL SELECT 7212937, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Parse: COMMIT 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Parse: COMMIT 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Bind: COMMIT 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Bind: COMMIT 2023-03-27 00:00:07: pid 18572: LOG: statement: COMMIT 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: Execute: COMMIT 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: Execute: COMMIT 2023-03-27 00:00:07: pid 18572: LOG: statement: DISCARD ALL 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 0 backend pid: 1020464 statement: DISCARD ALL 2023-03-27 00:00:07: pid 18572: LOG: DB node id: 1 backend pid: 2442348 statement: DISCARD ALL 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142383 AS oid , 1 AS attnum UNION ALL SELECT 5142383, 2 UNION ALL SELECT 5142383, 3 UNION ALL SELECT 5142383, 4 UNION ALL SELECT 5142383, 5 UNION ALL SELECT 5142383, 6 UNION ALL SELECT 5142383, 7 UNION ALL SELECT 5142383, 8 UNION ALL SELECT 5142383, 9 UNION ALL SELECT 5142383, 10 UNION ALL SELECT 5142383, 11 UNION ALL SELECT 5142383, 12 UNION ALL SELECT 5142383, 13 UNION ALL SELECT 5142383, 14 UNION ALL SELECT 5142383, 15 UNION ALL SELECT 5142383, 16 UNION ALL SELECT 5142383, 17 UNION ALL SELECT 5142383, 18 UNION ALL SELECT 514 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142383 AS oid , 1 AS attnum UNION ALL SELECT 5142383, 2 UNION ALL SELECT 5142383, 3 UNION ALL SELECT 5142383, 4 UNION ALL SELECT 5142383, 5 UNION ALL SELECT 5142383, 6 UNION ALL SELECT 5142383, 7 UNION ALL SELECT 5142383, 8 UNION ALL SELECT 5142383, 9 UNION ALL SELECT 5142383, 10 UNION ALL SELECT 5142383, 11 UNION ALL SELECT 5142383, 12 UNION ALL SELECT 5142383, 13 UNION ALL SELECT 5142383, 14 UNION ALL SELECT 5142383, 15 UNION ALL SELECT 5142383, 16 UNION ALL SELECT 5142383, 17 UNION ALL SELECT 5142383, 18 UNION ALL SELECT 5142 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: D message 2023-03-27 00:00:07: pid 19029: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142383 AS oid , 1 AS attnum UNION ALL SELECT 5142383, 2 UNION ALL SELECT 5142383, 3 UNION ALL SELECT 5142383, 4 UNION ALL SELECT 5142383, 5 UNION ALL SELECT 5142383, 6 UNION ALL SELECT 5142383, 7 UNION ALL SELECT 5142383, 8 UNION ALL SELECT 5142383, 9 UNION ALL SELECT 5142383, 10 UNION ALL SELECT 5142383, 11 UNION ALL SELECT 5142383, 12 UNION ALL SELECT 5142383, 13 UNION ALL SELECT 5142383, 14 UNION ALL SELECT 5142383, 15 UNION ALL SELECT 5142383, 16 UNION ALL SELECT 5142383, 17 UNION ALL SELECT 5142383, 18 UNION ALL SELECT 5142383, 19 UNION ALL SELECT 5142383, 20 UNION ALL SELECT 5142383, 21 UNION ALL SELECT 5142383, 22 UNION ALL SELECT 5142383, 23 UNION ALL SELECT 5142383, 24 UNION ALL SELECT 5142383, 25 UNION ALL SELECT 5142383, 26 UNION ALL SELECT 5142383, 27 UNION ALL SELECT 5142383, 28) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142383 AS oid , 1 AS attnum UNION ALL SELECT 5142383, 2 UNION ALL SELECT 5142383, 3 UNION ALL SELECT 5142383, 4 UNION ALL SELECT 5142383, 5 UNION ALL SELECT 5142383, 6 UNION ALL SELECT 5142383, 7 UNION ALL SELECT 5142383, 8 UNION ALL SELECT 5142383, 9 UNION ALL SELECT 5142383, 10 UNION ALL SELECT 5142383, 11 UNION ALL SELECT 5142383, 12 UNION ALL SELECT 5142383, 13 UNION ALL SELECT 5142383, 14 UNION ALL SELECT 5142383, 15 UNION ALL SELECT 5142383, 16 UNION ALL SELECT 5142383, 17 UNION ALL SELECT 5142383, 18 UNION ALL SELECT 5 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18788: LOG: new connection received 2023-03-27 00:00:07: pid 18788: DETAIL: connecting host=10.0.0.20 port=36842 2023-03-27 00:00:07: pid 18788: LOG: using clear text authentication with frontend 2023-03-27 00:00:07: pid 18788: DETAIL: backend will still use md5 auth 2023-03-27 00:00:07: pid 18788: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: SELECT version() 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18788: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18788: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: C message 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: C message 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142393 AS oid , 1 AS attnum UNION ALL SELECT 5142393, 2 UNION ALL SELECT 5142393, 3 UNION ALL SELECT 5142393, 4 UNION ALL SELECT 5142393, 5 UNION ALL SELECT 5142393, 6 UNION ALL SELECT 5142393, 7 UNION ALL SELECT 5142393, 8 UNION ALL SELECT 5142393, 9 UNION ALL SELECT 5142393, 10 UNION ALL SELECT 5142393, 11 UNION ALL SELECT 5142393, 12 UNION ALL SELECT 5142393, 13 UNION ALL SELECT 5142393, 14 UNION ALL SELECT 5142393, 15 UNION ALL SELECT 5142393, 16 UNION ALL SELECT 5142393, 17 UNION ALL SELECT 5142393, 18 UNION ALL SELECT 514 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 18788: LOG: statement: BEGIN 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142393 AS oid , 1 AS attnum UNION ALL SELECT 5142393, 2 UNION ALL SELECT 5142393, 3 UNION ALL SELECT 5142393, 4 UNION ALL SELECT 5142393, 5 UNION ALL SELECT 5142393, 6 UNION ALL SELECT 5142393, 7 UNION ALL SELECT 5142393, 8 UNION ALL SELECT 5142393, 9 UNION ALL SELECT 5142393, 10 UNION ALL SELECT 5142393, 11 UNION ALL SELECT 5142393, 12 UNION ALL SELECT 5142393, 13 UNION ALL SELECT 5142393, 14 UNION ALL SELECT 5142393, 15 UNION ALL SELECT 5142393, 16 UNION ALL SELECT 5142393, 17 UNION ALL SELECT 5142393, 18 UNION ALL SELECT 5142 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: D message 2023-03-27 00:00:07: pid 18481: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142393 AS oid , 1 AS attnum UNION ALL SELECT 5142393, 2 UNION ALL SELECT 5142393, 3 UNION ALL SELECT 5142393, 4 UNION ALL SELECT 5142393, 5 UNION ALL SELECT 5142393, 6 UNION ALL SELECT 5142393, 7 UNION ALL SELECT 5142393, 8 UNION ALL SELECT 5142393, 9 UNION ALL SELECT 5142393, 10 UNION ALL SELECT 5142393, 11 UNION ALL SELECT 5142393, 12 UNION ALL SELECT 5142393, 13 UNION ALL SELECT 5142393, 14 UNION ALL SELECT 5142393, 15 UNION ALL SELECT 5142393, 16 UNION ALL SELECT 5142393, 17 UNION ALL SELECT 5142393, 18 UNION ALL SELECT 5142393, 19 UNION ALL SELECT 5142393, 20 UNION ALL SELECT 5142393, 21 UNION ALL SELECT 5142393, 22 UNION ALL SELECT 5142393, 23 UNION ALL SELECT 5142393, 24 UNION ALL SELECT 5142393, 25 UNION ALL SELECT 5142393, 26) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142393 AS oid , 1 AS attnum UNION ALL SELECT 5142393, 2 UNION ALL SELECT 5142393, 3 UNION ALL SELECT 5142393, 4 UNION ALL SELECT 5142393, 5 UNION ALL SELECT 5142393, 6 UNION ALL SELECT 5142393, 7 UNION ALL SELECT 5142393, 8 UNION ALL SELECT 5142393, 9 UNION ALL SELECT 5142393, 10 UNION ALL SELECT 5142393, 11 UNION ALL SELECT 5142393, 12 UNION ALL SELECT 5142393, 13 UNION ALL SELECT 5142393, 14 UNION ALL SELECT 5142393, 15 UNION ALL SELECT 5142393, 16 UNION ALL SELECT 5142393, 17 UNION ALL SELECT 5142393, 18 UNION ALL SELECT 5 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_sn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Parse: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Bind: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: D message 2023-03-27 00:00:07: pid 18788: LOG: statement: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Parse: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Bind: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: D message 2023-03-27 00:00:07: pid 18481: LOG: statement: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Execute: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Parse: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Bind: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: D message 2023-03-27 00:00:07: pid 18481: LOG: statement: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Execute: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Parse: COMMIT 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Parse: COMMIT 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Bind: COMMIT 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Bind: COMMIT 2023-03-27 00:00:07: pid 18481: LOG: statement: COMMIT 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: Execute: COMMIT 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: Execute: COMMIT 2023-03-27 00:00:07: pid 18481: LOG: statement: DISCARD ALL 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 0 backend pid: 1020463 statement: DISCARD ALL 2023-03-27 00:00:07: pid 18481: LOG: DB node id: 1 backend pid: 2442349 statement: DISCARD ALL 2023-03-27 00:00:07: pid 18644: LOG: new connection received 2023-03-27 00:00:07: pid 18644: DETAIL: connecting host=10.0.0.20 port=36844 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18644: LOG: using clear text authentication with frontend 2023-03-27 00:00:07: pid 18644: DETAIL: backend will still use md5 auth 2023-03-27 00:00:07: pid 18644: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: SELECT version() 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 0 backend pid: 1020467 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 0 backend pid: 1020467 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18644: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 0 backend pid: 1020467 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 0 backend pid: 1020467 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 0 backend pid: 1020467 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18644: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 0 backend pid: 1020467 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_pn_log"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 0 backend pid: 1020467 statement: Parse: SELECT oid, pn, sn, department, catalog, category, spec, sku, lotname, action, actionsimple, qty, balance_qty, price, cost, costcenter, targettype, productoid, targetline, deviceoid, fixtureoid, opdept, opuser, sysuser, remark, cdt FROM report.v_spare_pn_log WHERE cdt > '2023-03-25 06:46:35.544497' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 0 backend pid: 1020467 statement: D message 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142393 AS oid , 1 AS attnum UNION ALL SELECT 5142393, 2 UNION ALL SELECT 5142393, 3 UNION ALL SELECT 5142393, 4 UNION ALL SELECT 5142393, 5 UNION ALL SELECT 5142393, 6 UNION ALL SELECT 5142393, 7 UNION ALL SELECT 5142393, 8 UNION ALL SELECT 5142393, 9 UNION ALL SELECT 5142393, 10 UNION ALL SELECT 5142393, 11 UNION ALL SELECT 5142393, 12 UNION ALL SELECT 5142393, 13 UNION ALL SELECT 5142393, 14 UNION ALL SELECT 5142393, 15 UNION ALL SELECT 5142393, 16 UNION ALL SELECT 5142393, 17 UNION ALL SELECT 5142393, 18 UNION ALL SELECT 514 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142393 AS oid , 1 AS attnum UNION ALL SELECT 5142393, 2 UNION ALL SELECT 5142393, 3 UNION ALL SELECT 5142393, 4 UNION ALL SELECT 5142393, 5 UNION ALL SELECT 5142393, 6 UNION ALL SELECT 5142393, 7 UNION ALL SELECT 5142393, 8 UNION ALL SELECT 5142393, 9 UNION ALL SELECT 5142393, 10 UNION ALL SELECT 5142393, 11 UNION ALL SELECT 5142393, 12 UNION ALL SELECT 5142393, 13 UNION ALL SELECT 5142393, 14 UNION ALL SELECT 5142393, 15 UNION ALL SELECT 5142393, 16 UNION ALL SELECT 5142393, 17 UNION ALL SELECT 5142393, 18 UNION ALL SELECT 5142 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: D message 2023-03-27 00:00:07: pid 18644: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142393 AS oid , 1 AS attnum UNION ALL SELECT 5142393, 2 UNION ALL SELECT 5142393, 3 UNION ALL SELECT 5142393, 4 UNION ALL SELECT 5142393, 5 UNION ALL SELECT 5142393, 6 UNION ALL SELECT 5142393, 7 UNION ALL SELECT 5142393, 8 UNION ALL SELECT 5142393, 9 UNION ALL SELECT 5142393, 10 UNION ALL SELECT 5142393, 11 UNION ALL SELECT 5142393, 12 UNION ALL SELECT 5142393, 13 UNION ALL SELECT 5142393, 14 UNION ALL SELECT 5142393, 15 UNION ALL SELECT 5142393, 16 UNION ALL SELECT 5142393, 17 UNION ALL SELECT 5142393, 18 UNION ALL SELECT 5142393, 19 UNION ALL SELECT 5142393, 20 UNION ALL SELECT 5142393, 21 UNION ALL SELECT 5142393, 22 UNION ALL SELECT 5142393, 23 UNION ALL SELECT 5142393, 24 UNION ALL SELECT 5142393, 25 UNION ALL SELECT 5142393, 26) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5142393 AS oid , 1 AS attnum UNION ALL SELECT 5142393, 2 UNION ALL SELECT 5142393, 3 UNION ALL SELECT 5142393, 4 UNION ALL SELECT 5142393, 5 UNION ALL SELECT 5142393, 6 UNION ALL SELECT 5142393, 7 UNION ALL SELECT 5142393, 8 UNION ALL SELECT 5142393, 9 UNION ALL SELECT 5142393, 10 UNION ALL SELECT 5142393, 11 UNION ALL SELECT 5142393, 12 UNION ALL SELECT 5142393, 13 UNION ALL SELECT 5142393, 14 UNION ALL SELECT 5142393, 15 UNION ALL SELECT 5142393, 16 UNION ALL SELECT 5142393, 17 UNION ALL SELECT 5142393, 18 UNION ALL SELECT 5 2023-03-27 00:00:07: pid 19029: LOG: statement: SELECT oid, pn, spec, unit, withsn, catalog, category, department, enabled, deleted, stock_qty, safety_qty, price, ws, charger, family, location, iscustomerspare, safety_alarm_time, expiration_days, purchase_cycle, min_purchase_qty, price_modify_time, lastout, remark, creator, cdt, udt FROM report.v_spare_pn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Execute: SELECT oid, pn, spec, unit, withsn, catalog, category, department, enabled, deleted, stock_qty, safety_qty, price, ws, charger, family, location, iscustomerspare, safety_alarm_time, expiration_days, purchase_cycle, min_purchase_qty, price_modify_time, lastout, remark, creator, cdt, udt FROM report.v_spare_pn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Parse: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Bind: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: D message 2023-03-27 00:00:07: pid 18644: LOG: statement: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Execute: SELECT n.nspname = ANY(current_schemas(true)), n.nspname, t.typname FROM pg_catalog.pg_type t JOIN pg_catalog.pg_namespace n ON t.typnamespace = n.oid WHERE t.oid = $1 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Parse: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Bind: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: D message 2023-03-27 00:00:07: pid 18644: LOG: statement: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: Execute: SELECT typinput='array_in'::regproc, typtype FROM pg_catalog.pg_type LEFT JOIN (select ns.oid as nspoid, ns.nspname, r.r from pg_namespace as ns join ( select s.r, (current_schemas(false))[s.r] as nspname from generate_series(1, array_upper(current_schemas(false), 1)) as s(r) ) as r using ( nspname ) ) as sp ON sp.nspoid = typnamespace WHERE typname = $1 ORDER BY sp.r, pg_type.oid DESC LIMIT 1 2023-03-27 00:00:07: pid 18644: LOG: statement: DISCARD ALL 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 0 backend pid: 1020467 statement: DISCARD ALL 2023-03-27 00:00:07: pid 18644: LOG: DB node id: 1 backend pid: 2442353 statement: DISCARD ALL 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: C message 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: C message 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Parse: COMMIT 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Parse: COMMIT 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Bind: COMMIT 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Bind: COMMIT 2023-03-27 00:00:07: pid 19029: LOG: statement: COMMIT 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: Execute: COMMIT 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: Execute: COMMIT 2023-03-27 00:00:07: pid 19029: LOG: statement: DISCARD ALL 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 0 backend pid: 1020465 statement: DISCARD ALL 2023-03-27 00:00:07: pid 19029: LOG: DB node id: 1 backend pid: 2442350 statement: DISCARD ALL 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2691223 AS oid , 1 AS attnum UNION ALL SELECT 2691223, 2 UNION ALL SELECT 2691223, 3 UNION ALL SELECT 2691223, 4 UNION ALL SELECT 2691223, 5 UNION ALL SELECT 2691223, 6 UNION ALL SELECT 2691223, 7 UNION ALL SELECT 2691223, 8 UNION ALL SELECT 2691223, 9 UNION ALL SELECT 2691223, 10 UNION ALL SELECT 2691223, 11 UNION ALL SELECT 2691223, 12 UNION ALL SELECT 2691223, 13 UNION ALL SELECT 2691223, 14 UNION ALL SELECT 2691223, 15 UNION ALL SELECT 2691223, 16 UNION ALL SELECT 2691223, 17 UNION ALL SELECT 2691223, 18 UNION ALL SELECT 269 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2691223 AS oid , 1 AS attnum UNION ALL SELECT 2691223, 2 UNION ALL SELECT 2691223, 3 UNION ALL SELECT 2691223, 4 UNION ALL SELECT 2691223, 5 UNION ALL SELECT 2691223, 6 UNION ALL SELECT 2691223, 7 UNION ALL SELECT 2691223, 8 UNION ALL SELECT 2691223, 9 UNION ALL SELECT 2691223, 10 UNION ALL SELECT 2691223, 11 UNION ALL SELECT 2691223, 12 UNION ALL SELECT 2691223, 13 UNION ALL SELECT 2691223, 14 UNION ALL SELECT 2691223, 15 UNION ALL SELECT 2691223, 16 UNION ALL SELECT 2691223, 17 UNION ALL SELECT 2691223, 18 UNION ALL SELECT 2691 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: D message 2023-03-27 00:00:07: pid 18788: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2691223 AS oid , 1 AS attnum UNION ALL SELECT 2691223, 2 UNION ALL SELECT 2691223, 3 UNION ALL SELECT 2691223, 4 UNION ALL SELECT 2691223, 5 UNION ALL SELECT 2691223, 6 UNION ALL SELECT 2691223, 7 UNION ALL SELECT 2691223, 8 UNION ALL SELECT 2691223, 9 UNION ALL SELECT 2691223, 10 UNION ALL SELECT 2691223, 11 UNION ALL SELECT 2691223, 12 UNION ALL SELECT 2691223, 13 UNION ALL SELECT 2691223, 14 UNION ALL SELECT 2691223, 15 UNION ALL SELECT 2691223, 16 UNION ALL SELECT 2691223, 17 UNION ALL SELECT 2691223, 18 UNION ALL SELECT 2691223, 19 UNION ALL SELECT 2691223, 20 UNION ALL SELECT 2691223, 21 UNION ALL SELECT 2691223, 22 UNION ALL SELECT 2691223, 23 UNION ALL SELECT 2691223, 24 UNION ALL SELECT 2691223, 25 UNION ALL SELECT 2691223, 26 UNION ALL SELECT 2691223, 27 UNION ALL SELECT 2691223, 28 UNION ALL SELECT 2691223, 29) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2691223 AS oid , 1 AS attnum UNION ALL SELECT 2691223, 2 UNION ALL SELECT 2691223, 3 UNION ALL SELECT 2691223, 4 UNION ALL SELECT 2691223, 5 UNION ALL SELECT 2691223, 6 UNION ALL SELECT 2691223, 7 UNION ALL SELECT 2691223, 8 UNION ALL SELECT 2691223, 9 UNION ALL SELECT 2691223, 10 UNION ALL SELECT 2691223, 11 UNION ALL SELECT 2691223, 12 UNION ALL SELECT 2691223, 13 UNION ALL SELECT 2691223, 14 UNION ALL SELECT 2691223, 15 UNION ALL SELECT 2691223, 16 UNION ALL SELECT 2691223, 17 UNION ALL SELECT 2691223, 18 UNION ALL SELECT 2 2023-03-27 00:00:07: pid 17945: LOG: new connection received 2023-03-27 00:00:07: pid 17945: DETAIL: connecting host=10.0.0.20 port=36846 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18788: LOG: statement: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:07: pid 17945: LOG: using clear text authentication with frontend 2023-03-27 00:00:07: pid 17945: DETAIL: backend will still use md5 auth 2023-03-27 00:00:07: pid 17945: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: SELECT version() 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 17945: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 17945: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Parse: BEGIN 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Bind: BEGIN 2023-03-27 00:00:07: pid 17945: LOG: statement: BEGIN 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Execute: BEGIN 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_device_layout"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Parse: SELECT oid, line, workcell, device_code, sequence, device_model, device_type, cdt, udt FROM report.v_device_layout WHERE 1 > '-1' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Bind: SELECT oid, line, workcell, device_code, sequence, device_model, device_type, cdt, udt FROM report.v_device_layout WHERE 1 > '-1' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: D message 2023-03-27 00:00:07: pid 17945: LOG: statement: SELECT oid, line, workcell, device_code, sequence, device_model, device_type, cdt, udt FROM report.v_device_layout WHERE 1 > '-1' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Execute: SELECT oid, line, workcell, device_code, sequence, device_model, device_type, cdt, udt FROM report.v_device_layout WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: C message 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: C message 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5113051 AS oid , 1 AS attnum UNION ALL SELECT 5113051, 2 UNION ALL SELECT 5113051, 3 UNION ALL SELECT 5113051, 4 UNION ALL SELECT 5113051, 5 UNION ALL SELECT 5113051, 6 UNION ALL SELECT 5113051, 7 UNION ALL SELECT 5113051, 8 UNION ALL SELECT 5113051, 9) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5113051 AS oid , 1 AS attnum UNION ALL SELECT 5113051, 2 UNION ALL SELECT 5113051, 3 UNION ALL SELECT 5113051, 4 UNION ALL SELECT 5113051, 5 UNION ALL SELECT 5113051, 6 UNION ALL SELECT 5113051, 7 UNION ALL SELECT 5113051, 8 UNION ALL SELECT 5113051, 9) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: D message 2023-03-27 00:00:07: pid 17945: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5113051 AS oid , 1 AS attnum UNION ALL SELECT 5113051, 2 UNION ALL SELECT 5113051, 3 UNION ALL SELECT 5113051, 4 UNION ALL SELECT 5113051, 5 UNION ALL SELECT 5113051, 6 UNION ALL SELECT 5113051, 7 UNION ALL SELECT 5113051, 8 UNION ALL SELECT 5113051, 9) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 5113051 AS oid , 1 AS attnum UNION ALL SELECT 5113051, 2 UNION ALL SELECT 5113051, 3 UNION ALL SELECT 5113051, 4 UNION ALL SELECT 5113051, 5 UNION ALL SELECT 5113051, 6 UNION ALL SELECT 5113051, 7 UNION ALL SELECT 5113051, 8 UNION ALL SELECT 5113051, 9) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Parse: COMMIT 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Parse: COMMIT 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Bind: COMMIT 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Bind: COMMIT 2023-03-27 00:00:07: pid 17945: LOG: statement: COMMIT 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: Execute: COMMIT 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: Execute: COMMIT 2023-03-27 00:00:07: pid 17945: LOG: statement: DISCARD ALL 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 0 backend pid: 1020468 statement: DISCARD ALL 2023-03-27 00:00:07: pid 17945: LOG: DB node id: 1 backend pid: 2442354 statement: DISCARD ALL 2023-03-27 00:00:07: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:07: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18788: LOG: statement: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18830: LOG: new connection received 2023-03-27 00:00:08: pid 18830: DETAIL: connecting host=10.0.0.20 port=46434 2023-03-27 00:00:08: pid 18830: LOG: using clear text authentication with frontend 2023-03-27 00:00:08: pid 18830: DETAIL: backend will still use md5 auth 2023-03-27 00:00:08: pid 18830: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: SELECT version() 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18830: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18830: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Parse: BEGIN 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Parse: BEGIN 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Bind: BEGIN 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Bind: BEGIN 2023-03-27 00:00:08: pid 18830: LOG: statement: BEGIN 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Execute: BEGIN 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Execute: BEGIN 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_contract_detail"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Parse: SELECT oid, contract_oid, state, taskid, taskname, cdt, udt FROM report.v_contract_detail WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Bind: SELECT oid, contract_oid, state, taskid, taskname, cdt, udt FROM report.v_contract_detail WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: D message 2023-03-27 00:00:08: pid 18830: LOG: statement: SELECT oid, contract_oid, state, taskid, taskname, cdt, udt FROM report.v_contract_detail WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Execute: SELECT oid, contract_oid, state, taskid, taskname, cdt, udt FROM report.v_contract_detail WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: C message 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: C message 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3267867 AS oid , 1 AS attnum UNION ALL SELECT 3267867, 2 UNION ALL SELECT 3267867, 3 UNION ALL SELECT 3267867, 4 UNION ALL SELECT 3267867, 5 UNION ALL SELECT 3267867, 6 UNION ALL SELECT 3267867, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3267867 AS oid , 1 AS attnum UNION ALL SELECT 3267867, 2 UNION ALL SELECT 3267867, 3 UNION ALL SELECT 3267867, 4 UNION ALL SELECT 3267867, 5 UNION ALL SELECT 3267867, 6 UNION ALL SELECT 3267867, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: D message 2023-03-27 00:00:08: pid 18830: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3267867 AS oid , 1 AS attnum UNION ALL SELECT 3267867, 2 UNION ALL SELECT 3267867, 3 UNION ALL SELECT 3267867, 4 UNION ALL SELECT 3267867, 5 UNION ALL SELECT 3267867, 6 UNION ALL SELECT 3267867, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3267867 AS oid , 1 AS attnum UNION ALL SELECT 3267867, 2 UNION ALL SELECT 3267867, 3 UNION ALL SELECT 3267867, 4 UNION ALL SELECT 3267867, 5 UNION ALL SELECT 3267867, 6 UNION ALL SELECT 3267867, 7) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Parse: COMMIT 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Parse: COMMIT 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Bind: COMMIT 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Bind: COMMIT 2023-03-27 00:00:08: pid 18830: LOG: statement: COMMIT 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: Execute: COMMIT 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: Execute: COMMIT 2023-03-27 00:00:08: pid 18830: LOG: statement: DISCARD ALL 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 0 backend pid: 1020469 statement: DISCARD ALL 2023-03-27 00:00:08: pid 18830: LOG: DB node id: 1 backend pid: 2442355 statement: DISCARD ALL 2023-03-27 00:00:08: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18984: LOG: new connection received 2023-03-27 00:00:08: pid 18984: DETAIL: connecting host=10.0.0.20 port=46442 2023-03-27 00:00:08: pid 18788: LOG: statement: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18984: LOG: using clear text authentication with frontend 2023-03-27 00:00:08: pid 18984: DETAIL: backend will still use md5 auth 2023-03-27 00:00:08: pid 18984: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: SELECT version() 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18984: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18984: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Parse: BEGIN 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Parse: BEGIN 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Bind: BEGIN 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Bind: BEGIN 2023-03-27 00:00:08: pid 18984: LOG: statement: BEGIN 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Execute: BEGIN 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Execute: BEGIN 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Parse: SELECT oid, fixturetype, fixturename, subtype, subtypename, side, hassn, charger, version_ref, limitalarm, limitalarmcount, limitalarmtime, limitlifecyclecount, limitlifecycletime, udt FROM report.v_fixture_type WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Bind: SELECT oid, fixturetype, fixturename, subtype, subtypename, side, hassn, charger, version_ref, limitalarm, limitalarmcount, limitalarmtime, limitlifecyclecount, limitlifecycletime, udt FROM report.v_fixture_type WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: D message 2023-03-27 00:00:08: pid 18984: LOG: statement: SELECT oid, fixturetype, fixturename, subtype, subtypename, side, hassn, charger, version_ref, limitalarm, limitalarmcount, limitalarmtime, limitlifecyclecount, limitlifecycletime, udt FROM report.v_fixture_type WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Execute: SELECT oid, fixturetype, fixturename, subtype, subtypename, side, hassn, charger, version_ref, limitalarm, limitalarmcount, limitalarmtime, limitlifecyclecount, limitlifecycletime, udt FROM report.v_fixture_type WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: C message 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: C message 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3287468 AS oid , 1 AS attnum UNION ALL SELECT 3287468, 2 UNION ALL SELECT 3287468, 3 UNION ALL SELECT 3287468, 4 UNION ALL SELECT 3287468, 5 UNION ALL SELECT 3287468, 6 UNION ALL SELECT 3287468, 7 UNION ALL SELECT 3287468, 8 UNION ALL SELECT 3287468, 9 UNION ALL SELECT 3287468, 10 UNION ALL SELECT 3287468, 11 UNION ALL SELECT 3287468, 12 UNION ALL SELECT 3287468, 13 UNION ALL SELECT 3287468, 14 UNION ALL SELECT 3287468, 15) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3287468 AS oid , 1 AS attnum UNION ALL SELECT 3287468, 2 UNION ALL SELECT 3287468, 3 UNION ALL SELECT 3287468, 4 UNION ALL SELECT 3287468, 5 UNION ALL SELECT 3287468, 6 UNION ALL SELECT 3287468, 7 UNION ALL SELECT 3287468, 8 UNION ALL SELECT 3287468, 9 UNION ALL SELECT 3287468, 10 UNION ALL SELECT 3287468, 11 UNION ALL SELECT 3287468, 12 UNION ALL SELECT 3287468, 13 UNION ALL SELECT 3287468, 14 UNION ALL SELECT 3287468, 15) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: D message 2023-03-27 00:00:08: pid 18984: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3287468 AS oid , 1 AS attnum UNION ALL SELECT 3287468, 2 UNION ALL SELECT 3287468, 3 UNION ALL SELECT 3287468, 4 UNION ALL SELECT 3287468, 5 UNION ALL SELECT 3287468, 6 UNION ALL SELECT 3287468, 7 UNION ALL SELECT 3287468, 8 UNION ALL SELECT 3287468, 9 UNION ALL SELECT 3287468, 10 UNION ALL SELECT 3287468, 11 UNION ALL SELECT 3287468, 12 UNION ALL SELECT 3287468, 13 UNION ALL SELECT 3287468, 14 UNION ALL SELECT 3287468, 15) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 3287468 AS oid , 1 AS attnum UNION ALL SELECT 3287468, 2 UNION ALL SELECT 3287468, 3 UNION ALL SELECT 3287468, 4 UNION ALL SELECT 3287468, 5 UNION ALL SELECT 3287468, 6 UNION ALL SELECT 3287468, 7 UNION ALL SELECT 3287468, 8 UNION ALL SELECT 3287468, 9 UNION ALL SELECT 3287468, 10 UNION ALL SELECT 3287468, 11 UNION ALL SELECT 3287468, 12 UNION ALL SELECT 3287468, 13 UNION ALL SELECT 3287468, 14 UNION ALL SELECT 3287468, 15) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Parse: COMMIT 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Parse: COMMIT 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Bind: COMMIT 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Bind: COMMIT 2023-03-27 00:00:08: pid 18984: LOG: statement: COMMIT 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: Execute: COMMIT 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: Execute: COMMIT 2023-03-27 00:00:08: pid 18984: LOG: statement: DISCARD ALL 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 0 backend pid: 1020470 statement: DISCARD ALL 2023-03-27 00:00:08: pid 18984: LOG: DB node id: 1 backend pid: 2442357 statement: DISCARD ALL 2023-03-27 00:00:08: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:08: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 19011: LOG: new connection received 2023-03-27 00:00:09: pid 19011: DETAIL: connecting host=10.0.0.20 port=46458 2023-03-27 00:00:09: pid 19011: LOG: using clear text authentication with frontend 2023-03-27 00:00:09: pid 19011: DETAIL: backend will still use md5 auth 2023-03-27 00:00:09: pid 19011: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: SELECT version() 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 19011: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 19011: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Parse: BEGIN 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Parse: BEGIN 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Bind: BEGIN 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Bind: BEGIN 2023-03-27 00:00:09: pid 19011: LOG: statement: BEGIN 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Execute: BEGIN 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Execute: BEGIN 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_base_model"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Parse: SELECT oid, model, fiscode, family, description, process, board_type, unioncount, lifecycle, pca_ver, pcb_ver, flow, bu, series, stage_type, customer, plant, editor, udt FROM report.v_base_model WHERE udt > '2023-03-26 09:21:02' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Bind: SELECT oid, model, fiscode, family, description, process, board_type, unioncount, lifecycle, pca_ver, pcb_ver, flow, bu, series, stage_type, customer, plant, editor, udt FROM report.v_base_model WHERE udt > '2023-03-26 09:21:02' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: D message 2023-03-27 00:00:09: pid 19011: LOG: statement: SELECT oid, model, fiscode, family, description, process, board_type, unioncount, lifecycle, pca_ver, pcb_ver, flow, bu, series, stage_type, customer, plant, editor, udt FROM report.v_base_model WHERE udt > '2023-03-26 09:21:02' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Execute: SELECT oid, model, fiscode, family, description, process, board_type, unioncount, lifecycle, pca_ver, pcb_ver, flow, bu, series, stage_type, customer, plant, editor, udt FROM report.v_base_model WHERE udt > '2023-03-26 09:21:02' 2023-03-27 00:00:09: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: C message 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: C message 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2674539 AS oid , 1 AS attnum UNION ALL SELECT 2674539, 2 UNION ALL SELECT 2674539, 3 UNION ALL SELECT 2674539, 4 UNION ALL SELECT 2674539, 5 UNION ALL SELECT 2674539, 6 UNION ALL SELECT 2674539, 7 UNION ALL SELECT 2674539, 8 UNION ALL SELECT 2674539, 9 UNION ALL SELECT 2674539, 10 UNION ALL SELECT 2674539, 11 UNION ALL SELECT 2674539, 12 UNION ALL SELECT 2674539, 13 UNION ALL SELECT 2674539, 14 UNION ALL SELECT 2674539, 15 UNION ALL SELECT 2674539, 16 UNION ALL SELECT 2674539, 17 UNION ALL SELECT 2674539, 18 UNION ALL SELECT 267 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2674539 AS oid , 1 AS attnum UNION ALL SELECT 2674539, 2 UNION ALL SELECT 2674539, 3 UNION ALL SELECT 2674539, 4 UNION ALL SELECT 2674539, 5 UNION ALL SELECT 2674539, 6 UNION ALL SELECT 2674539, 7 UNION ALL SELECT 2674539, 8 UNION ALL SELECT 2674539, 9 UNION ALL SELECT 2674539, 10 UNION ALL SELECT 2674539, 11 UNION ALL SELECT 2674539, 12 UNION ALL SELECT 2674539, 13 UNION ALL SELECT 2674539, 14 UNION ALL SELECT 2674539, 15 UNION ALL SELECT 2674539, 16 UNION ALL SELECT 2674539, 17 UNION ALL SELECT 2674539, 18 UNION ALL SELECT 2674 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: D message 2023-03-27 00:00:09: pid 19011: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2674539 AS oid , 1 AS attnum UNION ALL SELECT 2674539, 2 UNION ALL SELECT 2674539, 3 UNION ALL SELECT 2674539, 4 UNION ALL SELECT 2674539, 5 UNION ALL SELECT 2674539, 6 UNION ALL SELECT 2674539, 7 UNION ALL SELECT 2674539, 8 UNION ALL SELECT 2674539, 9 UNION ALL SELECT 2674539, 10 UNION ALL SELECT 2674539, 11 UNION ALL SELECT 2674539, 12 UNION ALL SELECT 2674539, 13 UNION ALL SELECT 2674539, 14 UNION ALL SELECT 2674539, 15 UNION ALL SELECT 2674539, 16 UNION ALL SELECT 2674539, 17 UNION ALL SELECT 2674539, 18 UNION ALL SELECT 2674539, 19) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2674539 AS oid , 1 AS attnum UNION ALL SELECT 2674539, 2 UNION ALL SELECT 2674539, 3 UNION ALL SELECT 2674539, 4 UNION ALL SELECT 2674539, 5 UNION ALL SELECT 2674539, 6 UNION ALL SELECT 2674539, 7 UNION ALL SELECT 2674539, 8 UNION ALL SELECT 2674539, 9 UNION ALL SELECT 2674539, 10 UNION ALL SELECT 2674539, 11 UNION ALL SELECT 2674539, 12 UNION ALL SELECT 2674539, 13 UNION ALL SELECT 2674539, 14 UNION ALL SELECT 2674539, 15 UNION ALL SELECT 2674539, 16 UNION ALL SELECT 2674539, 17 UNION ALL SELECT 2674539, 18 UNION ALL SELECT 2 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Parse: COMMIT 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Parse: COMMIT 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Bind: COMMIT 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Bind: COMMIT 2023-03-27 00:00:09: pid 19011: LOG: statement: COMMIT 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: Execute: COMMIT 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: Execute: COMMIT 2023-03-27 00:00:09: pid 19011: LOG: statement: DISCARD ALL 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 0 backend pid: 1020471 statement: DISCARD ALL 2023-03-27 00:00:09: pid 19011: LOG: DB node id: 1 backend pid: 2442359 statement: DISCARD ALL 2023-03-27 00:00:09: pid 17014: LOG: new connection received 2023-03-27 00:00:09: pid 17014: DETAIL: connecting host=10.0.0.20 port=46462 2023-03-27 00:00:09: pid 17014: LOG: using clear text authentication with frontend 2023-03-27 00:00:09: pid 17014: DETAIL: backend will still use md5 auth 2023-03-27 00:00:09: pid 17014: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: SELECT version() 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 0 backend pid: 1020472 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 0 backend pid: 1020472 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 17014: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 0 backend pid: 1020472 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 0 backend pid: 1020472 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 0 backend pid: 1020472 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 17014: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 0 backend pid: 1020472 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_base_model"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 0 backend pid: 1020472 statement: Parse: SELECT oid, model, fiscode, family, description, process, board_type, unioncount, lifecycle, pca_ver, pcb_ver, flow, bu, series, stage_type, customer, plant, editor, udt FROM report.v_base_model WHERE udt > '2023-03-26 09:21:02' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 0 backend pid: 1020472 statement: D message 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2674539 AS oid , 1 AS attnum UNION ALL SELECT 2674539, 2 UNION ALL SELECT 2674539, 3 UNION ALL SELECT 2674539, 4 UNION ALL SELECT 2674539, 5 UNION ALL SELECT 2674539, 6 UNION ALL SELECT 2674539, 7 UNION ALL SELECT 2674539, 8 UNION ALL SELECT 2674539, 9 UNION ALL SELECT 2674539, 10 UNION ALL SELECT 2674539, 11 UNION ALL SELECT 2674539, 12 UNION ALL SELECT 2674539, 13 UNION ALL SELECT 2674539, 14 UNION ALL SELECT 2674539, 15 UNION ALL SELECT 2674539, 16 UNION ALL SELECT 2674539, 17 UNION ALL SELECT 2674539, 18 UNION ALL SELECT 267 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2674539 AS oid , 1 AS attnum UNION ALL SELECT 2674539, 2 UNION ALL SELECT 2674539, 3 UNION ALL SELECT 2674539, 4 UNION ALL SELECT 2674539, 5 UNION ALL SELECT 2674539, 6 UNION ALL SELECT 2674539, 7 UNION ALL SELECT 2674539, 8 UNION ALL SELECT 2674539, 9 UNION ALL SELECT 2674539, 10 UNION ALL SELECT 2674539, 11 UNION ALL SELECT 2674539, 12 UNION ALL SELECT 2674539, 13 UNION ALL SELECT 2674539, 14 UNION ALL SELECT 2674539, 15 UNION ALL SELECT 2674539, 16 UNION ALL SELECT 2674539, 17 UNION ALL SELECT 2674539, 18 UNION ALL SELECT 2674 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: D message 2023-03-27 00:00:09: pid 17014: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2674539 AS oid , 1 AS attnum UNION ALL SELECT 2674539, 2 UNION ALL SELECT 2674539, 3 UNION ALL SELECT 2674539, 4 UNION ALL SELECT 2674539, 5 UNION ALL SELECT 2674539, 6 UNION ALL SELECT 2674539, 7 UNION ALL SELECT 2674539, 8 UNION ALL SELECT 2674539, 9 UNION ALL SELECT 2674539, 10 UNION ALL SELECT 2674539, 11 UNION ALL SELECT 2674539, 12 UNION ALL SELECT 2674539, 13 UNION ALL SELECT 2674539, 14 UNION ALL SELECT 2674539, 15 UNION ALL SELECT 2674539, 16 UNION ALL SELECT 2674539, 17 UNION ALL SELECT 2674539, 18 UNION ALL SELECT 2674539, 19) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 2674539 AS oid , 1 AS attnum UNION ALL SELECT 2674539, 2 UNION ALL SELECT 2674539, 3 UNION ALL SELECT 2674539, 4 UNION ALL SELECT 2674539, 5 UNION ALL SELECT 2674539, 6 UNION ALL SELECT 2674539, 7 UNION ALL SELECT 2674539, 8 UNION ALL SELECT 2674539, 9 UNION ALL SELECT 2674539, 10 UNION ALL SELECT 2674539, 11 UNION ALL SELECT 2674539, 12 UNION ALL SELECT 2674539, 13 UNION ALL SELECT 2674539, 14 UNION ALL SELECT 2674539, 15 UNION ALL SELECT 2674539, 16 UNION ALL SELECT 2674539, 17 UNION ALL SELECT 2674539, 18 UNION ALL SELECT 2 2023-03-27 00:00:09: pid 17014: LOG: statement: DISCARD ALL 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 0 backend pid: 1020472 statement: DISCARD ALL 2023-03-27 00:00:09: pid 17014: LOG: DB node id: 1 backend pid: 2442360 statement: DISCARD ALL 2023-03-27 00:00:09: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18788: LOG: statement: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18788: LOG: statement: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:09: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:10: pid 18774: LOG: statement: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: SELECT productmodel, fixturecode, subtype, workstation, pn, qty, cancel FROM report.v_fixture_preparerule WHERE 1 > '-1' 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: C message 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: C message 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Parse: COMMIT 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Parse: COMMIT 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Bind: COMMIT 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Bind: COMMIT 2023-03-27 00:00:10: pid 18774: LOG: statement: COMMIT 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: Execute: COMMIT 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: Execute: COMMIT 2023-03-27 00:00:10: pid 18774: LOG: statement: DISCARD ALL 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 0 backend pid: 1020462 statement: DISCARD ALL 2023-03-27 00:00:10: pid 18774: LOG: DB node id: 1 backend pid: 2442347 statement: DISCARD ALL 2023-03-27 00:00:10: pid 19037: LOG: new connection received 2023-03-27 00:00:10: pid 19037: DETAIL: connecting host=10.0.0.20 port=46472 2023-03-27 00:00:10: pid 19037: LOG: using clear text authentication with frontend 2023-03-27 00:00:10: pid 19037: DETAIL: backend will still use md5 auth 2023-03-27 00:00:10: pid 19037: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: SELECT version() 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Parse: SET extra_float_digits = 3 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Bind: SET extra_float_digits = 3 2023-03-27 00:00:10: pid 19037: LOG: statement: SET extra_float_digits = 3 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Execute: SET extra_float_digits = 3 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Parse: SET application_name = 'Kettle' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Bind: SET application_name = 'Kettle' 2023-03-27 00:00:10: pid 19037: LOG: statement: SET application_name = 'Kettle' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Execute: SET application_name = 'Kettle' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Parse: BEGIN 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Parse: BEGIN 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Bind: BEGIN 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Bind: BEGIN 2023-03-27 00:00:10: pid 19037: LOG: statement: BEGIN 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Execute: BEGIN 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Execute: BEGIN 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_base_line"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Parse: SELECT oid, process, line, line_name, bu, plant, workshop, line_mode, description, editor, cdt, udt FROM report.v_base_line WHERE 1 > '-1' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Bind: SELECT oid, process, line, line_name, bu, plant, workshop, line_mode, description, editor, cdt, udt FROM report.v_base_line WHERE 1 > '-1' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: D message 2023-03-27 00:00:10: pid 19037: LOG: statement: SELECT oid, process, line, line_name, bu, plant, workshop, line_mode, description, editor, cdt, udt FROM report.v_base_line WHERE 1 > '-1' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Execute: SELECT oid, process, line, line_name, bu, plant, workshop, line_mode, description, editor, cdt, udt FROM report.v_base_line WHERE 1 > '-1' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: C message 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: C message 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_class"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_namespace"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attribute"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_type"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"pg_attrdef"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Parse: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6700389 AS oid , 1 AS attnum UNION ALL SELECT 6700389, 2 UNION ALL SELECT 6700389, 3 UNION ALL SELECT 6700389, 4 UNION ALL SELECT 6700389, 6 UNION ALL SELECT 6700389, 7 UNION ALL SELECT 6700389, 8 UNION ALL SELECT 6700389, 9 UNION ALL SELECT 6700389, 10 UNION ALL SELECT 6700389, 11 UNION ALL SELECT 6700389, 12 UNION ALL SELECT 6700389, 13) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Bind: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6700389 AS oid , 1 AS attnum UNION ALL SELECT 6700389, 2 UNION ALL SELECT 6700389, 3 UNION ALL SELECT 6700389, 4 UNION ALL SELECT 6700389, 6 UNION ALL SELECT 6700389, 7 UNION ALL SELECT 6700389, 8 UNION ALL SELECT 6700389, 9 UNION ALL SELECT 6700389, 10 UNION ALL SELECT 6700389, 11 UNION ALL SELECT 6700389, 12 UNION ALL SELECT 6700389, 13) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: D message 2023-03-27 00:00:10: pid 19037: LOG: statement: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6700389 AS oid , 1 AS attnum UNION ALL SELECT 6700389, 2 UNION ALL SELECT 6700389, 3 UNION ALL SELECT 6700389, 4 UNION ALL SELECT 6700389, 6 UNION ALL SELECT 6700389, 7 UNION ALL SELECT 6700389, 8 UNION ALL SELECT 6700389, 9 UNION ALL SELECT 6700389, 10 UNION ALL SELECT 6700389, 11 UNION ALL SELECT 6700389, 12 UNION ALL SELECT 6700389, 13) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Execute: SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 6700389 AS oid , 1 AS attnum UNION ALL SELECT 6700389, 2 UNION ALL SELECT 6700389, 3 UNION ALL SELECT 6700389, 4 UNION ALL SELECT 6700389, 6 UNION ALL SELECT 6700389, 7 UNION ALL SELECT 6700389, 8 UNION ALL SELECT 6700389, 9 UNION ALL SELECT 6700389, 10 UNION ALL SELECT 6700389, 11 UNION ALL SELECT 6700389, 12 UNION ALL SELECT 6700389, 13) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Parse: COMMIT 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Parse: COMMIT 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Bind: COMMIT 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Bind: COMMIT 2023-03-27 00:00:10: pid 19037: LOG: statement: COMMIT 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: Execute: COMMIT 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: Execute: COMMIT 2023-03-27 00:00:10: pid 19037: LOG: statement: DISCARD ALL 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 0 backend pid: 1020473 statement: DISCARD ALL 2023-03-27 00:00:10: pid 19037: LOG: DB node id: 1 backend pid: 2442362 statement: DISCARD ALL 2023-03-27 00:00:10: pid 18788: LOG: statement: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:10: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:11: pid 18788: LOG: statement: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: SELECT oid, pn, sn, fixturetype, fixturename, subtype, subtypename, fixturever, enabled, status, location, productiondate, specialkeys, vendername, vendorsn, usecount, totalcount, usetime, totaltime, maintainstatus, limitlifecyclecount, limitlifecycletime, limitalarmcount, limitalarmtime, charger, creator, remark, cdt, udt FROM report.v_fixture_sn WHERE 1 > '-1' 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: C message 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: C message 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Parse: COMMIT 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Parse: COMMIT 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Bind: COMMIT 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Bind: COMMIT 2023-03-27 00:00:11: pid 18788: LOG: statement: COMMIT 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: Execute: COMMIT 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: Execute: COMMIT 2023-03-27 00:00:11: pid 18788: LOG: statement: DISCARD ALL 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 0 backend pid: 1020466 statement: DISCARD ALL 2023-03-27 00:00:11: pid 18788: LOG: DB node id: 1 backend pid: 2442352 statement: DISCARD ALL 2023-03-27 00:03:41: pid 17974: LOG: statement: select --'2023-03-26T16:03:41.764Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:03:41: pid 17974: LOG: DB node id: 1 backend pid: 2442103 statement: select --'2023-03-26T16:03:41.764Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:03:41: pid 18352: LOG: statement: select --'2023-03-26T16:03:41.767Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:03:41: pid 18352: LOG: DB node id: 1 backend pid: 2440022 statement: select --'2023-03-26T16:03:41.767Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:03:41: pid 17974: LOG: backend [1]: NOTICE: table "temp_bu_mlb_sc_distribution" does not exist, skipping 2023-03-27 00:03:41: pid 18679: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 00:03:41: pid 18679: LOG: DB node id: 0 backend pid: 1020215 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 00:03:42: pid 17974: LOG: backend [1]: NOTICE: table "temp_bu_mlb_sc_distribution_sum" does not exist, skipping 2023-03-27 00:04:09: pid 18679: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 00:04:09: pid 18679: LOG: DB node id: 1 backend pid: 2441450 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn_lite"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:04:09: pid 18679: ERROR: unable to read data from DB node 1 2023-03-27 00:04:09: pid 18679: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 00:04:09: pid 18679: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 00:04:09: pid 18679: LOG: statement: DISCARD ALL 2023-03-27 00:04:09: pid 18679: LOG: DB node id: 0 backend pid: 1020215 statement: DISCARD ALL 2023-03-27 00:04:09: pid 17974: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 00:04:09: pid 17974: LOG: DB node id: 1 backend pid: 2442103 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"t_data_map"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:04:09: pid 18679: LOG: DB node id: 1 backend pid: 2441450 statement: DISCARD ALL 2023-03-27 00:04:09: pid 18679: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:04:09: pid 18679: DETAIL: while trying to write data from offset: 0 wlen: 17 2023-03-27 00:04:09: pid 18679: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:04:09: pid 18679: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:04:09: pid 18596: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Keypart') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(x.pn,4) = y.key and y.category = 'Keypart') and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) = c.key and c.category = 'Keypart' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 00:04:09: pid 18596: LOG: DB node id: 1 backend pid: 2442104 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"t_data_map"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:04:09: pid 18679: LOG: new connection received 2023-03-27 00:04:09: pid 18679: DETAIL: connecting host=10.0.0.20 port=37974 2023-03-27 00:04:09: pid 18283: LOG: new connection received 2023-03-27 00:04:09: pid 18283: DETAIL: connecting host=10.0.0.20 port=37978 2023-03-27 00:04:09: pid 18679: LOG: using clear text authentication with frontend 2023-03-27 00:04:09: pid 18679: DETAIL: backend will still use md5 auth 2023-03-27 00:04:09: pid 18679: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:04:09: pid 18283: LOG: using clear text authentication with frontend 2023-03-27 00:04:09: pid 18283: DETAIL: backend will still use md5 auth 2023-03-27 00:04:09: pid 18283: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:04:09: pid 18679: LOG: statement: select aa.pngroup, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select '其他' as pngroup) aa left join -- 治具不良,待维修 (select '其他' as pngroup, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup) bb on aa.pngroup = bb.pngroup left join -- 维修小于14天 (select '其他' as pngroup, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') and a.sn = d.sn group by pngroup) union (select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup)) e group by pngroup) gg on aa.pngroup = gg.pngroup where slowday is not null 2023-03-27 00:04:09: pid 18679: LOG: DB node id: 1 backend pid: 2442737 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn_lite"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:04:09: pid 18283: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 00:04:09: pid 18283: LOG: DB node id: 1 backend pid: 2442738 statement: SELECT version() 2023-03-27 00:04:09: pid 18679: LOG: DB node id: 1 backend pid: 2442737 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn_log"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:04:09: pid 18679: LOG: DB node id: 1 backend pid: 2442737 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:04:09: pid 18679: LOG: DB node id: 0 backend pid: 1020551 statement: select aa.pngroup, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select '其他' as pngroup) aa left join -- 治具不良,待维修 (select '其他' as pngroup, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup) bb on aa.pngroup = bb.pngroup left join -- 维修小于14天 (select '其他' as pngroup, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') and a.sn = d.sn group by pngroup) union (select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup)) e group by pngroup) gg on aa.pngroup = gg.pngroup where slowday is not null 2023-03-27 00:04:09: pid 18352: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 00:04:09: pid 18352: LOG: DB node id: 1 backend pid: 2440022 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"tmp_maintenance_information_mlb_sc_line_bar"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:04:10: pid 18788: LOG: new connection received 2023-03-27 00:04:10: pid 18788: DETAIL: connecting host=10.0.0.20 port=51428 2023-03-27 00:04:10: pid 18788: LOG: using clear text authentication with frontend 2023-03-27 00:04:10: pid 18788: DETAIL: backend will still use md5 auth 2023-03-27 00:04:10: pid 18788: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:04:10: pid 18788: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 00:04:10: pid 18788: LOG: DB node id: 1 backend pid: 2442739 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"tmp_maintenance_information_mlb_sc_line_bar"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:05:07: pid 7535: LOG: child process with pid: 18941 exits with status 256 2023-03-27 00:05:07: pid 7535: LOG: fork a new child process with pid: 19098 2023-03-27 00:05:07: pid 7535: LOG: child process with pid: 18736 exits with status 256 2023-03-27 00:05:07: pid 7535: LOG: fork a new child process with pid: 19099 2023-03-27 00:05:07: pid 7535: LOG: child process with pid: 18403 exits with status 256 2023-03-27 00:05:07: pid 7535: LOG: fork a new child process with pid: 19100 2023-03-27 00:05:08: pid 7535: LOG: child process with pid: 18481 exits with status 256 2023-03-27 00:05:08: pid 7535: LOG: fork a new child process with pid: 19101 2023-03-27 00:05:09: pid 7535: LOG: child process with pid: 18909 exits with status 256 2023-03-27 00:05:09: pid 7535: LOG: fork a new child process with pid: 19102 2023-03-27 00:05:10: pid 7535: LOG: child process with pid: 19029 exits with status 256 2023-03-27 00:05:10: pid 7535: LOG: fork a new child process with pid: 19103 2023-03-27 00:05:10: pid 7535: LOG: child process with pid: 18927 exits with status 256 2023-03-27 00:05:10: pid 7535: LOG: fork a new child process with pid: 19104 2023-03-27 00:05:10: pid 7535: LOG: child process with pid: 18556 exits with status 256 2023-03-27 00:05:10: pid 7535: LOG: fork a new child process with pid: 19105 2023-03-27 00:05:10: pid 7535: LOG: child process with pid: 17945 exits with status 256 2023-03-27 00:05:10: pid 7535: LOG: fork a new child process with pid: 19106 2023-03-27 00:05:10: pid 7535: LOG: child process with pid: 18984 exits with status 256 2023-03-27 00:05:10: pid 7535: LOG: fork a new child process with pid: 19107 2023-03-27 00:05:10: pid 7535: LOG: child process with pid: 19011 exits with status 256 2023-03-27 00:05:10: pid 7535: LOG: fork a new child process with pid: 19108 2023-03-27 00:05:10: pid 7535: LOG: child process with pid: 17014 exits with status 256 2023-03-27 00:05:10: pid 7535: LOG: fork a new child process with pid: 19109 2023-03-27 00:05:11: pid 7535: LOG: child process with pid: 18774 exits with status 256 2023-03-27 00:05:11: pid 7535: LOG: fork a new child process with pid: 19110 2023-03-27 00:05:11: pid 7535: LOG: child process with pid: 18644 exits with status 256 2023-03-27 00:05:11: pid 7535: LOG: fork a new child process with pid: 19111 2023-03-27 00:05:11: pid 7535: LOG: child process with pid: 18635 exits with status 256 2023-03-27 00:05:11: pid 7535: LOG: fork a new child process with pid: 19112 2023-03-27 00:05:11: pid 7535: LOG: child process with pid: 19037 exits with status 256 2023-03-27 00:05:11: pid 7535: LOG: fork a new child process with pid: 19113 2023-03-27 00:06:08: pid 18679: LOG: statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_expensive_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 00:06:08: pid 18679: LOG: DB node id: 1 backend pid: 2442737 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"tmp_maintenance_information_expensive_line_bar"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:06:08: pid 18679: LOG: DB node id: 0 backend pid: 1020551 statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_expensive_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 00:06:08: pid 19048: LOG: new connection received 2023-03-27 00:06:08: pid 19048: DETAIL: connecting host=10.0.0.20 port=36530 2023-03-27 00:06:08: pid 19048: LOG: using clear text authentication with frontend 2023-03-27 00:06:08: pid 19048: DETAIL: backend will still use md5 auth 2023-03-27 00:06:08: pid 19048: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:06:08: pid 19048: LOG: statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_other_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 00:06:08: pid 19048: LOG: DB node id: 1 backend pid: 2442888 statement: SELECT version() 2023-03-27 00:08:41: pid 18679: LOG: statement: select --'2023-03-26T16:08:41.765Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:08:41: pid 18679: LOG: DB node id: 1 backend pid: 2442737 statement: select --'2023-03-26T16:08:41.765Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:08:41: pid 18679: LOG: backend [1]: NOTICE: table "temp_bu_mlb_sc_distribution" does not exist, skipping 2023-03-27 00:08:41: pid 18173: LOG: new connection received 2023-03-27 00:08:41: pid 18173: DETAIL: connecting host=10.0.0.20 port=48356 2023-03-27 00:08:41: pid 18173: LOG: using clear text authentication with frontend 2023-03-27 00:08:41: pid 18173: DETAIL: backend will still use md5 auth 2023-03-27 00:08:41: pid 18173: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:08:41: pid 18173: LOG: statement: select --'2023-03-26T16:08:41.768Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:08:41: pid 18173: LOG: DB node id: 1 backend pid: 2443084 statement: SELECT version() 2023-03-27 00:08:41: pid 18208: LOG: new connection received 2023-03-27 00:08:41: pid 18208: DETAIL: connecting host=10.0.0.20 port=48358 2023-03-27 00:08:41: pid 18208: LOG: using clear text authentication with frontend 2023-03-27 00:08:41: pid 18208: DETAIL: backend will still use md5 auth 2023-03-27 00:08:41: pid 18208: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:08:41: pid 18208: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 00:08:41: pid 18208: LOG: DB node id: 1 backend pid: 2443085 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"temp_fixure"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 00:08:42: pid 18679: LOG: backend [1]: NOTICE: table "temp_bu_mlb_sc_distribution_sum" does not exist, skipping 2023-03-27 00:09:10: pid 7535: LOG: child process with pid: 18572 exits with status 256 2023-03-27 00:09:10: pid 7535: LOG: fork a new child process with pid: 19114 2023-03-27 00:09:10: pid 7535: LOG: child process with pid: 18830 exits with status 256 2023-03-27 00:09:10: pid 7535: LOG: fork a new child process with pid: 19115 2023-03-27 00:09:10: pid 7535: LOG: child process with pid: 18553 exits with status 256 2023-03-27 00:09:10: pid 7535: LOG: fork a new child process with pid: 19116 2023-03-27 00:09:10: pid 7535: LOG: child process with pid: 18503 exits with status 256 2023-03-27 00:09:10: pid 7535: LOG: fork a new child process with pid: 19117 2023-03-27 00:09:11: pid 7535: LOG: child process with pid: 18564 exits with status 256 2023-03-27 00:09:11: pid 7535: LOG: fork a new child process with pid: 19118 2023-03-27 00:09:11: pid 7535: LOG: child process with pid: 18044 exits with status 256 2023-03-27 00:09:11: pid 7535: LOG: fork a new child process with pid: 19119 2023-03-27 00:10:06: pid 18565: LOG: new connection received 2023-03-27 00:10:06: pid 18565: DETAIL: connecting host=10.0.0.20 port=37038 2023-03-27 00:10:06: pid 18565: LOG: using clear text authentication with frontend 2023-03-27 00:10:06: pid 18565: DETAIL: backend will still use md5 auth 2023-03-27 00:10:06: pid 18565: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:10:06: pid 19053: LOG: new connection received 2023-03-27 00:10:06: pid 19053: DETAIL: connecting host=10.0.0.20 port=37052 2023-03-27 00:10:06: pid 18943: LOG: new connection received 2023-03-27 00:10:06: pid 18943: DETAIL: connecting host=10.0.0.20 port=37040 2023-03-27 00:10:06: pid 18220: LOG: new connection received 2023-03-27 00:10:06: pid 18220: DETAIL: connecting host=10.0.0.20 port=37050 2023-03-27 00:10:06: pid 19053: LOG: using clear text authentication with frontend 2023-03-27 00:10:06: pid 19053: DETAIL: backend will still use md5 auth 2023-03-27 00:10:06: pid 19053: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:10:06: pid 18943: LOG: using clear text authentication with frontend 2023-03-27 00:10:06: pid 18943: DETAIL: backend will still use md5 auth 2023-03-27 00:10:06: pid 18943: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:10:06: pid 18220: LOG: using clear text authentication with frontend 2023-03-27 00:10:06: pid 18220: DETAIL: backend will still use md5 auth 2023-03-27 00:10:06: pid 18220: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:10:06: pid 18565: LOG: DB node id: 1 backend pid: 2443207 statement: SELECT version() 2023-03-27 00:10:06: pid 19053: LOG: DB node id: 1 backend pid: 2443208 statement: SELECT version() 2023-03-27 00:10:06: pid 18943: LOG: DB node id: 1 backend pid: 2443209 statement: SELECT version() 2023-03-27 00:10:06: pid 18220: LOG: DB node id: 1 backend pid: 2443210 statement: SELECT version() 2023-03-27 00:11:13: pid 18679: LOG: statement: select --'2023-03-26T16:11:12.669Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:11:13: pid 18679: LOG: DB node id: 1 backend pid: 2442737 statement: select --'2023-03-26T16:11:12.669Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:11:13: pid 18699: LOG: new connection received 2023-03-27 00:11:13: pid 18699: DETAIL: connecting host=10.0.0.20 port=37340 2023-03-27 00:11:13: pid 19064: LOG: new connection received 2023-03-27 00:11:13: pid 19064: DETAIL: connecting host=10.0.0.20 port=60404 2023-03-27 00:11:13: pid 19064: LOG: using clear text authentication with frontend 2023-03-27 00:11:13: pid 19064: DETAIL: backend will still use md5 auth 2023-03-27 00:11:13: pid 19064: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:11:13: pid 18699: LOG: using clear text authentication with frontend 2023-03-27 00:11:13: pid 18699: DETAIL: backend will still use md5 auth 2023-03-27 00:11:13: pid 18699: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:11:13: pid 19064: LOG: statement: select --'2023-03-26T16:11:12.666Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:11:13: pid 18699: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 00:11:13: pid 19064: LOG: DB node id: 1 backend pid: 2443311 statement: SELECT version() 2023-03-27 00:11:13: pid 18699: LOG: DB node id: 1 backend pid: 2443312 statement: SELECT version() 2023-03-27 00:12:57: pid 18861: LOG: new connection received 2023-03-27 00:12:57: pid 18861: DETAIL: connecting host=10.0.0.20 port=57474 2023-03-27 00:12:57: pid 18679: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 00:12:57: pid 18679: LOG: DB node id: 0 backend pid: 1020551 statement: select 'W' || date_part('week',now()) 2023-03-27 00:12:57: pid 18861: LOG: using clear text authentication with frontend 2023-03-27 00:12:57: pid 18861: DETAIL: backend will still use md5 auth 2023-03-27 00:12:57: pid 18861: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:12:57: pid 18861: LOG: statement: select date_part('isoyear',now()) 2023-03-27 00:12:57: pid 18861: LOG: DB node id: 1 backend pid: 2443450 statement: SELECT version() 2023-03-27 00:13:41: pid 18892: LOG: new connection received 2023-03-27 00:13:41: pid 18892: DETAIL: connecting host=10.0.0.20 port=44208 2023-03-27 00:13:41: pid 18892: LOG: using clear text authentication with frontend 2023-03-27 00:13:41: pid 18892: DETAIL: backend will still use md5 auth 2023-03-27 00:13:41: pid 18892: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:13:41: pid 18892: LOG: statement: select --'2023-03-26T16:13:41.789Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:13:41: pid 19007: LOG: new connection received 2023-03-27 00:13:41: pid 19007: DETAIL: connecting host=10.0.0.20 port=44218 2023-03-27 00:13:41: pid 18892: LOG: DB node id: 1 backend pid: 2443502 statement: SELECT version() 2023-03-27 00:13:41: pid 19007: LOG: using clear text authentication with frontend 2023-03-27 00:13:41: pid 19007: DETAIL: backend will still use md5 auth 2023-03-27 00:13:41: pid 19007: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:13:41: pid 19007: LOG: statement: select --'2023-03-26T16:13:41.796Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:13:41: pid 19007: LOG: DB node id: 1 backend pid: 2443503 statement: SELECT version() 2023-03-27 00:13:42: pid 18679: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 00:13:42: pid 18679: LOG: DB node id: 0 backend pid: 1020551 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 00:18:41: pid 18679: LOG: statement: select --'2023-03-26T16:18:41.75Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:18:41: pid 18679: LOG: DB node id: 1 backend pid: 2442737 statement: select --'2023-03-26T16:18:41.75Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:20:06: pid 16490: LOG: new connection received 2023-03-27 00:20:06: pid 16490: DETAIL: connecting host=10.0.0.20 port=46768 2023-03-27 00:20:06: pid 18647: LOG: new connection received 2023-03-27 00:20:06: pid 18647: DETAIL: connecting host=10.0.0.20 port=46774 2023-03-27 00:20:06: pid 18826: LOG: new connection received 2023-03-27 00:20:06: pid 18826: DETAIL: connecting host=10.0.0.20 port=46790 2023-03-27 00:20:06: pid 18922: LOG: new connection received 2023-03-27 00:20:06: pid 18922: DETAIL: connecting host=10.0.0.20 port=46804 2023-03-27 00:20:06: pid 18826: LOG: using clear text authentication with frontend 2023-03-27 00:20:06: pid 18826: DETAIL: backend will still use md5 auth 2023-03-27 00:20:06: pid 18826: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:20:06: pid 18647: LOG: using clear text authentication with frontend 2023-03-27 00:20:06: pid 18647: DETAIL: backend will still use md5 auth 2023-03-27 00:20:06: pid 18647: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:20:06: pid 16490: LOG: using clear text authentication with frontend 2023-03-27 00:20:06: pid 16490: DETAIL: backend will still use md5 auth 2023-03-27 00:20:06: pid 16490: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:20:06: pid 18922: LOG: using clear text authentication with frontend 2023-03-27 00:20:06: pid 18922: DETAIL: backend will still use md5 auth 2023-03-27 00:20:06: pid 18922: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:20:06: pid 18826: LOG: DB node id: 1 backend pid: 2443973 statement: SELECT version() 2023-03-27 00:20:06: pid 16490: LOG: DB node id: 1 backend pid: 2443975 statement: SELECT version() 2023-03-27 00:20:06: pid 18922: LOG: DB node id: 1 backend pid: 2443976 statement: SELECT version() 2023-03-27 00:20:06: pid 18647: LOG: DB node id: 1 backend pid: 2443974 statement: SELECT version() 2023-03-27 00:23:41: pid 18679: LOG: statement: select --'2023-03-26T16:23:41.761Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:23:41: pid 18679: LOG: DB node id: 1 backend pid: 2442737 statement: select --'2023-03-26T16:23:41.761Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:28:41: pid 18679: LOG: statement: select --'2023-03-26T16:28:41.777Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:28:41: pid 18679: LOG: DB node id: 1 backend pid: 2442737 statement: select --'2023-03-26T16:28:41.777Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:28:42: pid 18447: LOG: new connection received 2023-03-27 00:28:42: pid 18447: DETAIL: connecting host=10.0.0.20 port=33414 2023-03-27 00:28:42: pid 18447: LOG: using clear text authentication with frontend 2023-03-27 00:28:42: pid 18447: DETAIL: backend will still use md5 auth 2023-03-27 00:28:42: pid 18447: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:28:42: pid 18447: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 00:28:42: pid 18447: LOG: DB node id: 1 backend pid: 2444610 statement: SELECT version() 2023-03-27 00:28:58: pid 18679: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 00:28:58: pid 18679: LOG: DB node id: 0 backend pid: 1020551 statement: select 'W' || date_part('week',now()) 2023-03-27 00:28:58: pid 18679: ERROR: unable to read data from DB node 0 2023-03-27 00:28:58: pid 18679: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 00:28:58: pid 18679: LOG: statement: DISCARD ALL 2023-03-27 00:28:58: pid 18679: LOG: DB node id: 0 backend pid: 1020551 statement: DISCARD ALL 2023-03-27 00:28:58: pid 18679: WARNING: write on backend 0 failed with error :"Broken pipe" 2023-03-27 00:28:58: pid 18679: DETAIL: while trying to write data from offset: 0 wlen: 17 2023-03-27 00:28:58: pid 18679: WARNING: write on backend 0 failed with error :"Broken pipe" 2023-03-27 00:28:58: pid 18679: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:28:58: pid 18189: LOG: new connection received 2023-03-27 00:28:58: pid 18189: DETAIL: connecting host=10.0.0.20 port=43674 2023-03-27 00:28:58: pid 18189: LOG: using clear text authentication with frontend 2023-03-27 00:28:58: pid 18189: DETAIL: backend will still use md5 auth 2023-03-27 00:28:58: pid 18189: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:28:58: pid 18189: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 00:28:58: pid 18189: LOG: DB node id: 1 backend pid: 2444632 statement: SELECT version() 2023-03-27 00:33:42: pid 18834: LOG: new connection received 2023-03-27 00:33:42: pid 18834: DETAIL: connecting host=10.0.0.20 port=38492 2023-03-27 00:33:42: pid 18834: LOG: using clear text authentication with frontend 2023-03-27 00:33:42: pid 18834: DETAIL: backend will still use md5 auth 2023-03-27 00:33:42: pid 18834: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:33:42: pid 18834: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 00:33:42: pid 18834: LOG: DB node id: 1 backend pid: 2444987 statement: SELECT version() 2023-03-27 00:33:59: pid 17974: ERROR: unable to read data from DB node 1 2023-03-27 00:33:59: pid 17974: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 00:33:59: pid 17974: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 00:33:59: pid 7535: LOG: child process with pid: 18679 exits with status 256 2023-03-27 00:33:59: pid 17974: LOG: statement: DISCARD ALL 2023-03-27 00:33:59: pid 17974: LOG: DB node id: 0 backend pid: 1020390 statement: DISCARD ALL 2023-03-27 00:33:59: pid 17974: WARNING: write on backend 0 failed with error :"Broken pipe" 2023-03-27 00:33:59: pid 17974: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:33:59: pid 17974: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:33:59: pid 17974: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:33:59: pid 7535: LOG: fork a new child process with pid: 19120 2023-03-27 00:33:59: pid 18995: LOG: new connection received 2023-03-27 00:33:59: pid 18995: DETAIL: connecting host=10.0.0.20 port=44954 2023-03-27 00:33:59: pid 18995: LOG: using clear text authentication with frontend 2023-03-27 00:33:59: pid 18995: DETAIL: backend will still use md5 auth 2023-03-27 00:33:59: pid 18995: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:33:59: pid 18995: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 00:33:59: pid 18995: LOG: DB node id: 1 backend pid: 2445011 statement: SELECT version() 2023-03-27 00:37:47: pid 18857: LOG: new connection received 2023-03-27 00:37:47: pid 18857: DETAIL: connecting host=10.0.0.20 port=58444 2023-03-27 00:37:47: pid 18857: LOG: using clear text authentication with frontend 2023-03-27 00:37:47: pid 18857: DETAIL: backend will still use md5 auth 2023-03-27 00:37:47: pid 18857: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:37:47: pid 18857: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 00:37:47: pid 18857: LOG: DB node id: 1 backend pid: 2445298 statement: SELECT version() 2023-03-27 00:37:47: pid 18562: LOG: new connection received 2023-03-27 00:37:47: pid 18562: DETAIL: connecting host=10.0.0.20 port=58460 2023-03-27 00:37:47: pid 18694: LOG: new connection received 2023-03-27 00:37:47: pid 18694: DETAIL: connecting host=10.0.0.20 port=58454 2023-03-27 00:37:47: pid 18562: LOG: using clear text authentication with frontend 2023-03-27 00:37:47: pid 18562: DETAIL: backend will still use md5 auth 2023-03-27 00:37:47: pid 18562: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:37:47: pid 18694: LOG: using clear text authentication with frontend 2023-03-27 00:37:47: pid 18694: DETAIL: backend will still use md5 auth 2023-03-27 00:37:47: pid 18694: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:37:47: pid 18562: LOG: statement: select case fsns.line when '' then '回库' else fsns.line end as line, case status when 'inuse' then '在线' when 'maintain' then '清洗室' else status end as status, count(*) as qty from report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='K' and enabled and status in ('inuse','maintain') and sn.sn = fsns.sn and fsns.line is not null and fsns.line not in ('','stock') group by fsns.line,status order by fsns.line,status desc 2023-03-27 00:37:47: pid 18694: LOG: statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 00:37:47: pid 18562: LOG: DB node id: 1 backend pid: 2445299 statement: SELECT version() 2023-03-27 00:37:47: pid 18694: LOG: DB node id: 1 backend pid: 2445300 statement: SELECT version() 2023-03-27 00:37:47: pid 19024: LOG: new connection received 2023-03-27 00:37:47: pid 19024: DETAIL: connecting host=10.0.0.20 port=58476 2023-03-27 00:37:47: pid 19024: LOG: using clear text authentication with frontend 2023-03-27 00:37:47: pid 19024: DETAIL: backend will still use md5 auth 2023-03-27 00:37:47: pid 19024: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:37:47: pid 19024: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' 2023-03-27 00:37:47: pid 19024: LOG: DB node id: 1 backend pid: 2445302 statement: SELECT version() 2023-03-27 00:39:00: pid 18596: ERROR: unable to read data from DB node 1 2023-03-27 00:39:00: pid 18596: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 00:39:00: pid 18596: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 00:39:00: pid 7535: LOG: child process with pid: 17974 exits with status 256 2023-03-27 00:39:00: pid 18596: LOG: statement: DISCARD ALL 2023-03-27 00:39:00: pid 18596: LOG: DB node id: 0 backend pid: 1020391 statement: DISCARD ALL 2023-03-27 00:39:00: pid 18596: WARNING: write on backend 0 failed with error :"Broken pipe" 2023-03-27 00:39:00: pid 18596: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:39:00: pid 18596: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:39:00: pid 18596: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:39:00: pid 7535: LOG: fork a new child process with pid: 19121 2023-03-27 00:39:00: pid 19104: LOG: new connection received 2023-03-27 00:39:00: pid 19104: DETAIL: connecting host=10.0.0.20 port=36498 2023-03-27 00:39:00: pid 19104: LOG: using clear text authentication with frontend 2023-03-27 00:39:00: pid 19104: DETAIL: backend will still use md5 auth 2023-03-27 00:39:00: pid 19104: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:39:00: pid 19104: LOG: statement: select --'2023-03-26T16:28:41.776Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:39:00: pid 19104: LOG: DB node id: 1 backend pid: 2445399 statement: SELECT version() 2023-03-27 00:44:02: pid 18283: ERROR: unable to read data from DB node 1 2023-03-27 00:44:02: pid 18283: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 00:44:02: pid 18283: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 00:44:02: pid 18283: LOG: statement: DISCARD ALL 2023-03-27 00:44:02: pid 7535: LOG: child process with pid: 18596 exits with status 256 2023-03-27 00:44:02: pid 18283: LOG: DB node id: 1 backend pid: 2442738 statement: SELECT version() 2023-03-27 00:44:02: pid 18283: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:44:02: pid 18283: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 00:44:02: pid 18283: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 00:44:02: pid 18283: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:44:02: pid 18283: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:44:02: pid 7535: LOG: fork a new child process with pid: 19122 2023-03-27 00:44:02: pid 18884: LOG: new connection received 2023-03-27 00:44:02: pid 18884: DETAIL: connecting host=10.0.0.20 port=35586 2023-03-27 00:44:02: pid 18884: LOG: using clear text authentication with frontend 2023-03-27 00:44:02: pid 18884: DETAIL: backend will still use md5 auth 2023-03-27 00:44:02: pid 18884: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:44:02: pid 18884: LOG: statement: select --'2023-03-26T16:38:41.798Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:44:02: pid 18884: LOG: DB node id: 1 backend pid: 2445807 statement: SELECT version() 2023-03-27 00:49:03: pid 7535: LOG: child process with pid: 18283 exits with status 256 2023-03-27 00:49:03: pid 7535: LOG: fork a new child process with pid: 19123 2023-03-27 00:49:03: pid 18352: ERROR: unable to read data from DB node 1 2023-03-27 00:49:03: pid 18352: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 00:49:03: pid 18352: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 00:49:03: pid 18352: LOG: statement: DISCARD ALL 2023-03-27 00:49:03: pid 18352: LOG: DB node id: 0 backend pid: 1019847 statement: DISCARD ALL 2023-03-27 00:49:03: pid 18352: WARNING: write on backend 0 failed with error :"Broken pipe" 2023-03-27 00:49:03: pid 18352: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:49:03: pid 18352: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:49:03: pid 18352: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:49:03: pid 18225: LOG: new connection received 2023-03-27 00:49:03: pid 18225: DETAIL: connecting host=10.0.0.20 port=40244 2023-03-27 00:49:03: pid 18225: LOG: using clear text authentication with frontend 2023-03-27 00:49:03: pid 18225: DETAIL: backend will still use md5 auth 2023-03-27 00:49:03: pid 18225: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:49:03: pid 18225: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 00:49:03: pid 18225: LOG: DB node id: 1 backend pid: 2446165 statement: SELECT version() 2023-03-27 00:54:04: pid 18788: ERROR: unable to read data from DB node 1 2023-03-27 00:54:04: pid 18788: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 00:54:04: pid 18788: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 00:54:04: pid 7535: LOG: child process with pid: 18352 exits with status 256 2023-03-27 00:54:04: pid 18788: LOG: statement: DISCARD ALL 2023-03-27 00:54:04: pid 18788: LOG: DB node id: 0 backend pid: 1020554 statement: DISCARD ALL 2023-03-27 00:54:04: pid 18788: WARNING: write on backend 0 failed with error :"Broken pipe" 2023-03-27 00:54:04: pid 18788: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:54:04: pid 18788: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:54:04: pid 18788: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:54:04: pid 7535: LOG: fork a new child process with pid: 19124 2023-03-27 00:54:04: pid 19095: LOG: new connection received 2023-03-27 00:54:04: pid 19095: DETAIL: connecting host=10.0.0.20 port=57564 2023-03-27 00:54:04: pid 19095: LOG: using clear text authentication with frontend 2023-03-27 00:54:04: pid 19095: DETAIL: backend will still use md5 auth 2023-03-27 00:54:04: pid 19095: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:54:04: pid 19095: LOG: statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_other_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 00:54:04: pid 19095: LOG: DB node id: 1 backend pid: 2446540 statement: SELECT version() 2023-03-27 00:59:05: pid 19048: ERROR: unable to read data from DB node 1 2023-03-27 00:59:05: pid 19048: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 00:59:05: pid 19048: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 00:59:05: pid 7535: LOG: child process with pid: 18788 exits with status 256 2023-03-27 00:59:05: pid 19048: LOG: statement: DISCARD ALL 2023-03-27 00:59:05: pid 19048: LOG: DB node id: 1 backend pid: 2442888 statement: SELECT version() 2023-03-27 00:59:05: pid 19048: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:59:05: pid 19048: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 00:59:05: pid 19048: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 00:59:05: pid 19048: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 00:59:05: pid 19048: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 00:59:05: pid 7535: LOG: fork a new child process with pid: 19125 2023-03-27 00:59:05: pid 18753: LOG: new connection received 2023-03-27 00:59:05: pid 18753: DETAIL: connecting host=10.0.0.20 port=42072 2023-03-27 00:59:05: pid 18753: LOG: using clear text authentication with frontend 2023-03-27 00:59:05: pid 18753: DETAIL: backend will still use md5 auth 2023-03-27 00:59:05: pid 18753: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 00:59:05: pid 18753: LOG: statement: select --'2023-03-26T16:18:41.752Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 00:59:05: pid 18753: LOG: DB node id: 1 backend pid: 2446929 statement: SELECT version() 2023-03-27 01:04:07: pid 18173: ERROR: unable to read data from DB node 1 2023-03-27 01:04:07: pid 18173: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:04:07: pid 18173: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:04:07: pid 18173: LOG: statement: DISCARD ALL 2023-03-27 01:04:07: pid 7535: LOG: child process with pid: 19048 exits with status 256 2023-03-27 01:04:07: pid 18173: LOG: DB node id: 1 backend pid: 2443084 statement: SELECT version() 2023-03-27 01:04:07: pid 18173: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:04:07: pid 18173: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:04:07: pid 18173: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:04:07: pid 18173: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:04:07: pid 18173: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:04:07: pid 7535: LOG: fork a new child process with pid: 19126 2023-03-27 01:04:07: pid 18500: LOG: new connection received 2023-03-27 01:04:07: pid 18500: DETAIL: connecting host=10.0.0.20 port=42254 2023-03-27 01:04:07: pid 18500: LOG: using clear text authentication with frontend 2023-03-27 01:04:07: pid 18500: DETAIL: backend will still use md5 auth 2023-03-27 01:04:07: pid 18500: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 01:04:07: pid 18500: LOG: statement: select --'2023-03-26T16:33:41.879Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 01:04:07: pid 18500: LOG: DB node id: 1 backend pid: 2447326 statement: SELECT version() 2023-03-27 01:09:08: pid 7535: LOG: child process with pid: 18173 exits with status 256 2023-03-27 01:09:08: pid 18208: ERROR: unable to read data from DB node 1 2023-03-27 01:09:08: pid 18208: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:09:08: pid 18208: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:09:08: pid 18208: LOG: statement: DISCARD ALL 2023-03-27 01:09:08: pid 18208: LOG: DB node id: 0 backend pid: 1020639 statement: DISCARD ALL 2023-03-27 01:09:08: pid 18208: WARNING: write on backend 0 failed with error :"Broken pipe" 2023-03-27 01:09:08: pid 18208: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:09:08: pid 18208: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:09:08: pid 18208: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:09:08: pid 7535: LOG: fork a new child process with pid: 19127 2023-03-27 01:09:08: pid 17298: LOG: new connection received 2023-03-27 01:09:08: pid 17298: DETAIL: connecting host=10.0.0.20 port=51596 2023-03-27 01:09:08: pid 17298: LOG: using clear text authentication with frontend 2023-03-27 01:09:08: pid 17298: DETAIL: backend will still use md5 auth 2023-03-27 01:09:08: pid 17298: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 01:09:08: pid 17298: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 01:09:08: pid 17298: LOG: DB node id: 1 backend pid: 2447700 statement: SELECT version() 2023-03-27 01:14:09: pid 18565: ERROR: unable to read data from DB node 1 2023-03-27 01:14:09: pid 18565: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:14:09: pid 18565: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:14:09: pid 18565: LOG: statement: DISCARD ALL 2023-03-27 01:14:09: pid 7535: LOG: child process with pid: 18208 exits with status 256 2023-03-27 01:14:09: pid 18565: LOG: DB node id: 1 backend pid: 2443207 statement: SELECT version() 2023-03-27 01:14:09: pid 18565: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:14:09: pid 18565: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:14:09: pid 18565: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:14:09: pid 18565: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:14:09: pid 18565: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:14:09: pid 7535: LOG: fork a new child process with pid: 19128 2023-03-27 01:19:11: pid 19053: ERROR: unable to read data from DB node 1 2023-03-27 01:19:11: pid 19053: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:19:11: pid 19053: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:19:11: pid 7535: LOG: child process with pid: 18565 exits with status 256 2023-03-27 01:19:11: pid 19053: LOG: statement: DISCARD ALL 2023-03-27 01:19:11: pid 19053: LOG: DB node id: 1 backend pid: 2443208 statement: SELECT version() 2023-03-27 01:19:11: pid 19053: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:19:11: pid 19053: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:19:11: pid 19053: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:19:11: pid 19053: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:19:11: pid 19053: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:19:11: pid 7535: LOG: fork a new child process with pid: 19129 2023-03-27 01:24:12: pid 18943: ERROR: unable to read data from DB node 1 2023-03-27 01:24:12: pid 18943: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:24:12: pid 18943: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:24:12: pid 18943: LOG: statement: DISCARD ALL 2023-03-27 01:24:12: pid 7535: LOG: child process with pid: 19053 exits with status 256 2023-03-27 01:24:12: pid 18943: LOG: DB node id: 1 backend pid: 2443209 statement: SELECT version() 2023-03-27 01:24:12: pid 18943: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:24:12: pid 18943: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:24:12: pid 18943: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:24:12: pid 18943: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:24:12: pid 18943: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:24:12: pid 7535: LOG: fork a new child process with pid: 19130 2023-03-27 01:29:13: pid 18220: ERROR: unable to read data from DB node 1 2023-03-27 01:29:13: pid 18220: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:29:13: pid 18220: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:29:13: pid 18220: LOG: statement: DISCARD ALL 2023-03-27 01:29:13: pid 7535: LOG: child process with pid: 18943 exits with status 256 2023-03-27 01:29:13: pid 18220: LOG: DB node id: 1 backend pid: 2443210 statement: SELECT version() 2023-03-27 01:29:13: pid 18220: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:29:13: pid 18220: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:29:13: pid 18220: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:29:13: pid 18220: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:29:13: pid 18220: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:29:13: pid 7535: LOG: fork a new child process with pid: 19131 2023-03-27 01:34:14: pid 19064: ERROR: unable to read data from DB node 1 2023-03-27 01:34:14: pid 19064: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:34:14: pid 19064: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:34:14: pid 7535: LOG: child process with pid: 18220 exits with status 256 2023-03-27 01:34:14: pid 19064: LOG: statement: DISCARD ALL 2023-03-27 01:34:14: pid 19064: LOG: DB node id: 1 backend pid: 2443311 statement: SELECT version() 2023-03-27 01:34:14: pid 19064: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:34:14: pid 19064: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:34:14: pid 19064: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:34:14: pid 19064: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:34:14: pid 19064: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:34:14: pid 7535: LOG: fork a new child process with pid: 19132 2023-03-27 01:34:14: pid 18719: LOG: new connection received 2023-03-27 01:34:14: pid 18719: DETAIL: connecting host=10.0.0.20 port=55602 2023-03-27 01:34:15: pid 18719: LOG: using clear text authentication with frontend 2023-03-27 01:34:15: pid 18719: DETAIL: backend will still use md5 auth 2023-03-27 01:34:15: pid 18719: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 01:34:15: pid 18719: LOG: statement: select --'2023-03-26T17:08:42.115Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 01:34:15: pid 18719: LOG: DB node id: 1 backend pid: 2449584 statement: SELECT version() 2023-03-27 01:39:16: pid 18699: ERROR: unable to read data from DB node 1 2023-03-27 01:39:16: pid 18699: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:39:16: pid 18699: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:39:16: pid 18699: LOG: statement: DISCARD ALL 2023-03-27 01:39:16: pid 7535: LOG: child process with pid: 19064 exits with status 256 2023-03-27 01:39:16: pid 18699: LOG: DB node id: 1 backend pid: 2443312 statement: SELECT version() 2023-03-27 01:39:16: pid 18699: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:39:16: pid 18699: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:39:16: pid 18699: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:39:16: pid 18699: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:39:16: pid 18699: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:39:16: pid 7535: LOG: fork a new child process with pid: 19133 2023-03-27 01:39:16: pid 19042: LOG: new connection received 2023-03-27 01:39:16: pid 19042: DETAIL: connecting host=10.0.0.20 port=52386 2023-03-27 01:39:16: pid 19042: LOG: using clear text authentication with frontend 2023-03-27 01:39:16: pid 19042: DETAIL: backend will still use md5 auth 2023-03-27 01:39:16: pid 19042: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 01:39:16: pid 19042: LOG: statement: select right(pn,3) as "设备类型",pn as "刮刀型号", tag, qty from ((select pn, '1总数' as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and pn not in ('Y0TTEST') and status <> 'scrap' group by pn) union (select pn, case status when 'inuse' then '3使用' when 'instock' then '2在库' when 'maintain' then '4清洗' when 'transfer' then '5移转' else status end as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn not in ('Y0TTEST') group by pn, status) union (select pn, fsns.line as tag, count(*) as qty FROM report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='Y' and enabled and status = 'inuse' and pn not in ('Y0TTEST') and sn.sn = fsns.sn group by pn, fsns.line, status) ) aa order by tag,pn 2023-03-27 01:39:16: pid 19042: LOG: DB node id: 1 backend pid: 2449991 statement: SELECT version() 2023-03-27 01:44:17: pid 18861: ERROR: unable to read data from DB node 1 2023-03-27 01:44:17: pid 18861: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:44:17: pid 18861: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:44:17: pid 7535: LOG: child process with pid: 18699 exits with status 256 2023-03-27 01:44:17: pid 18861: LOG: statement: DISCARD ALL 2023-03-27 01:44:17: pid 18861: LOG: DB node id: 1 backend pid: 2443450 statement: SELECT version() 2023-03-27 01:44:17: pid 18861: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:44:17: pid 18861: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:44:17: pid 18861: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:44:17: pid 18861: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:44:17: pid 18861: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:44:17: pid 7535: LOG: fork a new child process with pid: 19134 2023-03-27 01:44:17: pid 18568: LOG: new connection received 2023-03-27 01:44:17: pid 18568: DETAIL: connecting host=10.0.0.20 port=35744 2023-03-27 01:44:17: pid 18568: LOG: using clear text authentication with frontend 2023-03-27 01:44:17: pid 18568: DETAIL: backend will still use md5 auth 2023-03-27 01:44:17: pid 18568: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 01:44:17: pid 18568: LOG: statement: select --'2023-03-26T17:23:42.09Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 01:44:17: pid 18568: LOG: DB node id: 1 backend pid: 2450409 statement: SELECT version() 2023-03-27 01:49:18: pid 18892: ERROR: unable to read data from DB node 1 2023-03-27 01:49:18: pid 18892: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:49:18: pid 18892: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:49:18: pid 7535: LOG: child process with pid: 18861 exits with status 256 2023-03-27 01:49:18: pid 18892: LOG: statement: DISCARD ALL 2023-03-27 01:49:18: pid 18892: LOG: DB node id: 1 backend pid: 2443502 statement: SELECT version() 2023-03-27 01:49:18: pid 18892: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:49:18: pid 18892: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:49:18: pid 18892: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:49:18: pid 18892: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:49:18: pid 18892: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:49:18: pid 7535: LOG: fork a new child process with pid: 19135 2023-03-27 01:49:18: pid 18043: LOG: new connection received 2023-03-27 01:49:18: pid 18043: DETAIL: connecting host=10.0.0.20 port=46930 2023-03-27 01:49:18: pid 18043: LOG: using clear text authentication with frontend 2023-03-27 01:49:18: pid 18043: DETAIL: backend will still use md5 auth 2023-03-27 01:49:18: pid 18043: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 01:49:18: pid 18043: LOG: statement: select --'2023-03-26T17:33:42.11Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 01:49:18: pid 18043: LOG: DB node id: 1 backend pid: 2450773 statement: SELECT version() 2023-03-27 01:54:20: pid 19007: ERROR: unable to read data from DB node 1 2023-03-27 01:54:20: pid 19007: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:54:20: pid 19007: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:54:20: pid 7535: LOG: child process with pid: 18892 exits with status 256 2023-03-27 01:54:20: pid 19007: LOG: statement: DISCARD ALL 2023-03-27 01:54:20: pid 19007: LOG: DB node id: 1 backend pid: 2443503 statement: SELECT version() 2023-03-27 01:54:20: pid 19007: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:54:20: pid 19007: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:54:20: pid 19007: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:54:20: pid 19007: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:54:20: pid 19007: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:54:20: pid 7535: LOG: fork a new child process with pid: 19136 2023-03-27 01:54:20: pid 18967: LOG: new connection received 2023-03-27 01:54:20: pid 18967: DETAIL: connecting host=10.0.0.20 port=43036 2023-03-27 01:54:20: pid 18967: LOG: using clear text authentication with frontend 2023-03-27 01:54:20: pid 18967: DETAIL: backend will still use md5 auth 2023-03-27 01:54:20: pid 18967: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 01:54:20: pid 18967: LOG: statement: select sum(useqty)/sum(totalqty) as rate from ((select count(*) as totalqty, 0 as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap') union (select 0 as totalqty, count(*) as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status in ('inuse','maintain')) ) aa 2023-03-27 01:54:20: pid 18967: LOG: DB node id: 1 backend pid: 2451145 statement: SELECT version() 2023-03-27 01:59:21: pid 18826: ERROR: unable to read data from DB node 1 2023-03-27 01:59:21: pid 18826: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 01:59:21: pid 18826: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:59:21: pid 18826: LOG: statement: DISCARD ALL 2023-03-27 01:59:21: pid 7535: LOG: child process with pid: 19007 exits with status 256 2023-03-27 01:59:21: pid 18826: LOG: DB node id: 1 backend pid: 2443973 statement: SELECT version() 2023-03-27 01:59:21: pid 18826: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:59:21: pid 18826: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 01:59:21: pid 18826: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 01:59:21: pid 18826: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 01:59:21: pid 18826: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 01:59:21: pid 7535: LOG: fork a new child process with pid: 19137 2023-03-27 02:04:22: pid 16490: ERROR: unable to read data from DB node 1 2023-03-27 02:04:22: pid 16490: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:04:22: pid 16490: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:04:22: pid 7535: LOG: child process with pid: 18826 exits with status 256 2023-03-27 02:04:22: pid 16490: LOG: statement: DISCARD ALL 2023-03-27 02:04:22: pid 16490: LOG: DB node id: 1 backend pid: 2443975 statement: SELECT version() 2023-03-27 02:04:22: pid 16490: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:04:22: pid 16490: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:04:22: pid 16490: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:04:22: pid 16490: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:04:22: pid 16490: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:04:22: pid 7535: LOG: fork a new child process with pid: 19138 2023-03-27 02:09:24: pid 7535: LOG: child process with pid: 16490 exits with status 256 2023-03-27 02:09:24: pid 18922: ERROR: unable to read data from DB node 1 2023-03-27 02:09:24: pid 18922: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:09:24: pid 18922: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:09:24: pid 18922: LOG: statement: DISCARD ALL 2023-03-27 02:09:24: pid 18922: LOG: DB node id: 1 backend pid: 2443976 statement: SELECT version() 2023-03-27 02:09:24: pid 18922: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:09:24: pid 18922: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:09:24: pid 18922: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:09:24: pid 18922: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:09:24: pid 18922: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:09:24: pid 7535: LOG: fork a new child process with pid: 19139 2023-03-27 02:14:25: pid 18647: ERROR: unable to read data from DB node 1 2023-03-27 02:14:25: pid 18647: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:14:25: pid 18647: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:14:25: pid 18647: LOG: statement: DISCARD ALL 2023-03-27 02:14:25: pid 7535: LOG: child process with pid: 18922 exits with status 256 2023-03-27 02:14:25: pid 18647: LOG: DB node id: 1 backend pid: 2443974 statement: SELECT version() 2023-03-27 02:14:25: pid 18647: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:14:25: pid 18647: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:14:25: pid 18647: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:14:25: pid 18647: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:14:25: pid 18647: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:14:25: pid 7535: LOG: fork a new child process with pid: 19140 2023-03-27 02:19:26: pid 18447: ERROR: unable to read data from DB node 1 2023-03-27 02:19:26: pid 18447: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:19:26: pid 18447: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:19:26: pid 7535: LOG: child process with pid: 18647 exits with status 256 2023-03-27 02:19:26: pid 18447: LOG: statement: DISCARD ALL 2023-03-27 02:19:26: pid 18447: LOG: DB node id: 1 backend pid: 2444610 statement: SELECT version() 2023-03-27 02:19:26: pid 18447: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:19:26: pid 18447: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:19:26: pid 18447: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:19:26: pid 7535: LOG: fork a new child process with pid: 19141 2023-03-27 02:19:26: pid 18447: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:19:26: pid 18447: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:19:26: pid 18846: LOG: new connection received 2023-03-27 02:19:26: pid 18846: DETAIL: connecting host=10.0.0.20 port=58636 2023-03-27 02:19:26: pid 18846: LOG: using clear text authentication with frontend 2023-03-27 02:19:26: pid 18846: DETAIL: backend will still use md5 auth 2023-03-27 02:19:26: pid 18846: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 02:19:26: pid 18846: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select count(*) from report.v_fixture_sn sn, fsns where fixturetype='K' and enabled and status = 'inuse' and sn.sn = fsns.sn and fsns.line <> '' and fsns.line is not null 2023-03-27 02:19:26: pid 18846: LOG: DB node id: 1 backend pid: 2453093 statement: SELECT version() 2023-03-27 02:24:27: pid 18189: ERROR: unable to read data from DB node 1 2023-03-27 02:24:27: pid 18189: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:24:27: pid 18189: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:24:27: pid 7535: LOG: child process with pid: 18447 exits with status 256 2023-03-27 02:24:27: pid 18189: LOG: statement: DISCARD ALL 2023-03-27 02:24:27: pid 18189: LOG: DB node id: 1 backend pid: 2444632 statement: SELECT version() 2023-03-27 02:24:27: pid 18189: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:24:27: pid 18189: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:24:27: pid 18189: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:24:27: pid 18189: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:24:27: pid 18189: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:24:27: pid 7535: LOG: fork a new child process with pid: 19142 2023-03-27 02:24:27: pid 18695: LOG: new connection received 2023-03-27 02:24:27: pid 18695: DETAIL: connecting host=10.0.0.20 port=50710 2023-03-27 02:24:27: pid 18695: LOG: using clear text authentication with frontend 2023-03-27 02:24:27: pid 18695: DETAIL: backend will still use md5 auth 2023-03-27 02:24:27: pid 18695: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 02:24:27: pid 18695: LOG: statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 02:24:27: pid 18695: LOG: DB node id: 1 backend pid: 2453486 statement: SELECT version() 2023-03-27 02:29:29: pid 18834: ERROR: unable to read data from DB node 1 2023-03-27 02:29:29: pid 18834: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:29:29: pid 18834: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:29:29: pid 7535: LOG: child process with pid: 18189 exits with status 256 2023-03-27 02:29:29: pid 18834: LOG: statement: DISCARD ALL 2023-03-27 02:29:29: pid 18834: LOG: DB node id: 1 backend pid: 2444987 statement: SELECT version() 2023-03-27 02:29:29: pid 18834: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:29:29: pid 18834: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:29:29: pid 18834: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:29:29: pid 18834: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:29:29: pid 18834: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:29:29: pid 7535: LOG: fork a new child process with pid: 19143 2023-03-27 02:29:29: pid 18465: LOG: new connection received 2023-03-27 02:29:29: pid 18465: DETAIL: connecting host=10.0.0.20 port=60360 2023-03-27 02:29:29: pid 18465: LOG: using clear text authentication with frontend 2023-03-27 02:29:29: pid 18465: DETAIL: backend will still use md5 auth 2023-03-27 02:29:29: pid 18465: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 02:29:29: pid 18465: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 02:29:29: pid 18465: LOG: DB node id: 1 backend pid: 2453862 statement: SELECT version() 2023-03-27 02:34:30: pid 18995: ERROR: unable to read data from DB node 1 2023-03-27 02:34:30: pid 18995: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:34:30: pid 18995: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:34:30: pid 7535: LOG: child process with pid: 18834 exits with status 256 2023-03-27 02:34:30: pid 18995: LOG: statement: DISCARD ALL 2023-03-27 02:34:30: pid 18995: LOG: DB node id: 1 backend pid: 2445011 statement: SELECT version() 2023-03-27 02:34:30: pid 18995: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:34:30: pid 18995: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:34:30: pid 18995: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:34:30: pid 18995: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:34:30: pid 18995: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:34:30: pid 7535: LOG: fork a new child process with pid: 19144 2023-03-27 02:34:30: pid 19137: LOG: new connection received 2023-03-27 02:34:30: pid 19137: DETAIL: connecting host=10.0.0.20 port=40366 2023-03-27 02:34:30: pid 19137: LOG: using clear text authentication with frontend 2023-03-27 02:34:30: pid 19137: DETAIL: backend will still use md5 auth 2023-03-27 02:34:30: pid 19137: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 02:34:30: pid 19137: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 02:34:30: pid 19137: LOG: DB node id: 1 backend pid: 2454270 statement: SELECT version() 2023-03-27 02:39:31: pid 18857: ERROR: unable to read data from DB node 1 2023-03-27 02:39:31: pid 18857: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:39:31: pid 18857: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:39:31: pid 7535: LOG: child process with pid: 18995 exits with status 256 2023-03-27 02:39:31: pid 18857: LOG: statement: DISCARD ALL 2023-03-27 02:39:31: pid 18857: LOG: DB node id: 1 backend pid: 2445298 statement: SELECT version() 2023-03-27 02:39:31: pid 18857: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:39:31: pid 18857: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:39:31: pid 18857: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:39:31: pid 18857: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:39:31: pid 18857: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:39:31: pid 7535: LOG: fork a new child process with pid: 19145 2023-03-27 02:39:31: pid 18889: LOG: new connection received 2023-03-27 02:39:31: pid 18889: DETAIL: connecting host=10.0.0.20 port=35396 2023-03-27 02:39:31: pid 18889: LOG: using clear text authentication with frontend 2023-03-27 02:39:31: pid 18889: DETAIL: backend will still use md5 auth 2023-03-27 02:39:31: pid 18889: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 02:39:31: pid 18889: LOG: statement: select date_part('isoyear',now()) 2023-03-27 02:39:31: pid 18889: LOG: DB node id: 1 backend pid: 2454703 statement: SELECT version() 2023-03-27 02:44:33: pid 18562: ERROR: unable to read data from DB node 1 2023-03-27 02:44:33: pid 18562: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:44:33: pid 18562: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:44:33: pid 7535: LOG: child process with pid: 18857 exits with status 256 2023-03-27 02:44:33: pid 18562: LOG: statement: DISCARD ALL 2023-03-27 02:44:33: pid 18562: LOG: DB node id: 1 backend pid: 2445299 statement: SELECT version() 2023-03-27 02:44:33: pid 18562: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:44:33: pid 18562: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:44:33: pid 18562: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:44:33: pid 18562: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:44:33: pid 18562: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:44:33: pid 7535: LOG: fork a new child process with pid: 19146 2023-03-27 02:44:33: pid 19146: LOG: new connection received 2023-03-27 02:44:33: pid 19146: DETAIL: connecting host=10.0.0.20 port=49766 2023-03-27 02:44:33: pid 19146: LOG: using clear text authentication with frontend 2023-03-27 02:44:33: pid 19146: DETAIL: backend will still use md5 auth 2023-03-27 02:44:33: pid 19146: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 02:44:33: pid 19146: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 02:44:33: pid 19146: LOG: DB node id: 1 backend pid: 2455133 statement: SELECT version() 2023-03-27 02:49:34: pid 18694: ERROR: unable to read data from DB node 1 2023-03-27 02:49:34: pid 18694: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:49:34: pid 18694: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:49:34: pid 7535: LOG: child process with pid: 18562 exits with status 256 2023-03-27 02:49:34: pid 18694: LOG: statement: DISCARD ALL 2023-03-27 02:49:34: pid 18694: LOG: DB node id: 1 backend pid: 2445300 statement: SELECT version() 2023-03-27 02:49:34: pid 18694: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:49:34: pid 18694: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:49:34: pid 18694: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:49:34: pid 18694: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:49:34: pid 18694: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:49:34: pid 7535: LOG: fork a new child process with pid: 19147 2023-03-27 02:49:34: pid 19126: LOG: new connection received 2023-03-27 02:49:34: pid 19126: DETAIL: connecting host=10.0.0.20 port=57512 2023-03-27 02:49:34: pid 19126: LOG: using clear text authentication with frontend 2023-03-27 02:49:34: pid 19126: DETAIL: backend will still use md5 auth 2023-03-27 02:49:34: pid 19126: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 02:49:34: pid 19126: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 02:49:34: pid 19126: LOG: DB node id: 1 backend pid: 2455506 statement: SELECT version() 2023-03-27 02:54:35: pid 19024: ERROR: unable to read data from DB node 1 2023-03-27 02:54:35: pid 19024: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:54:35: pid 19024: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:54:35: pid 7535: LOG: child process with pid: 18694 exits with status 256 2023-03-27 02:54:35: pid 19024: LOG: statement: DISCARD ALL 2023-03-27 02:54:35: pid 19024: LOG: DB node id: 1 backend pid: 2445302 statement: SELECT version() 2023-03-27 02:54:35: pid 19024: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:54:35: pid 19024: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:54:35: pid 19024: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:54:35: pid 19024: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:54:35: pid 19024: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:54:35: pid 7535: LOG: fork a new child process with pid: 19148 2023-03-27 02:54:35: pid 18789: LOG: new connection received 2023-03-27 02:54:35: pid 18789: DETAIL: connecting host=10.0.0.20 port=34812 2023-03-27 02:54:35: pid 18789: LOG: using clear text authentication with frontend 2023-03-27 02:54:35: pid 18789: DETAIL: backend will still use md5 auth 2023-03-27 02:54:35: pid 18789: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 02:54:35: pid 18789: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 02:54:35: pid 18789: LOG: DB node id: 1 backend pid: 2455892 statement: SELECT version() 2023-03-27 02:59:36: pid 19104: ERROR: unable to read data from DB node 1 2023-03-27 02:59:36: pid 19104: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 02:59:36: pid 19104: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:59:36: pid 19104: LOG: statement: DISCARD ALL 2023-03-27 02:59:36: pid 7535: LOG: child process with pid: 19024 exits with status 256 2023-03-27 02:59:36: pid 19104: LOG: DB node id: 1 backend pid: 2445399 statement: SELECT version() 2023-03-27 02:59:36: pid 19104: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:59:36: pid 19104: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 02:59:36: pid 19104: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 02:59:36: pid 19104: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 02:59:36: pid 19104: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 02:59:36: pid 7535: LOG: fork a new child process with pid: 19149 2023-03-27 02:59:36: pid 19129: LOG: new connection received 2023-03-27 02:59:36: pid 19129: DETAIL: connecting host=10.0.0.20 port=35228 2023-03-27 02:59:36: pid 19129: LOG: using clear text authentication with frontend 2023-03-27 02:59:36: pid 19129: DETAIL: backend will still use md5 auth 2023-03-27 02:59:36: pid 19129: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 02:59:37: pid 19129: LOG: statement: select count(distinct f.sn) from public.plt_fixture_fixtureclean m, report.v_fixture_sn f where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = m.plt_sn and f.status = 'maintain' --and f.line = '' 2023-03-27 02:59:37: pid 19129: LOG: DB node id: 1 backend pid: 2456260 statement: SELECT version() 2023-03-27 03:04:38: pid 18884: ERROR: unable to read data from DB node 1 2023-03-27 03:04:38: pid 18884: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:04:38: pid 18884: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:04:38: pid 18884: LOG: statement: DISCARD ALL 2023-03-27 03:04:38: pid 7535: LOG: child process with pid: 19104 exits with status 256 2023-03-27 03:04:38: pid 18884: LOG: DB node id: 1 backend pid: 2445807 statement: SELECT version() 2023-03-27 03:04:38: pid 18884: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:04:38: pid 18884: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:04:38: pid 18884: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:04:38: pid 18884: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:04:38: pid 18884: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:04:38: pid 7535: LOG: fork a new child process with pid: 19150 2023-03-27 03:04:38: pid 19127: LOG: new connection received 2023-03-27 03:04:38: pid 19127: DETAIL: connecting host=10.0.0.20 port=37210 2023-03-27 03:04:38: pid 19127: LOG: using clear text authentication with frontend 2023-03-27 03:04:38: pid 19127: DETAIL: backend will still use md5 auth 2023-03-27 03:04:38: pid 19127: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:04:38: pid 19127: LOG: statement: select case fsns.line when '' then '回库' else fsns.line end as line, case status when 'inuse' then '在线' when 'maintain' then '清洗室' else status end as status, count(*) as qty from report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='K' and enabled and status in ('inuse','maintain') and sn.sn = fsns.sn and fsns.line is not null and fsns.line not in ('','stock') group by fsns.line,status order by fsns.line,status desc 2023-03-27 03:04:38: pid 19127: LOG: DB node id: 1 backend pid: 2456654 statement: SELECT version() 2023-03-27 03:09:39: pid 18225: ERROR: unable to read data from DB node 1 2023-03-27 03:09:39: pid 18225: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:09:39: pid 18225: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:09:39: pid 7535: LOG: child process with pid: 18884 exits with status 256 2023-03-27 03:09:39: pid 18225: LOG: statement: DISCARD ALL 2023-03-27 03:09:39: pid 18225: LOG: DB node id: 1 backend pid: 2446165 statement: SELECT version() 2023-03-27 03:09:39: pid 18225: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:09:39: pid 18225: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:09:39: pid 18225: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:09:39: pid 18225: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:09:39: pid 18225: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:09:39: pid 7535: LOG: fork a new child process with pid: 19151 2023-03-27 03:09:39: pid 19016: LOG: new connection received 2023-03-27 03:09:39: pid 19016: DETAIL: connecting host=10.0.0.20 port=59742 2023-03-27 03:09:39: pid 19016: LOG: using clear text authentication with frontend 2023-03-27 03:09:39: pid 19016: DETAIL: backend will still use md5 auth 2023-03-27 03:09:39: pid 19016: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:09:39: pid 19016: LOG: statement: select date_part('isoyear',now()) 2023-03-27 03:09:39: pid 19016: LOG: DB node id: 1 backend pid: 2457033 statement: SELECT version() 2023-03-27 03:14:40: pid 19095: ERROR: unable to read data from DB node 1 2023-03-27 03:14:40: pid 19095: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:14:40: pid 19095: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:14:40: pid 7535: LOG: child process with pid: 18225 exits with status 256 2023-03-27 03:14:40: pid 19095: LOG: statement: DISCARD ALL 2023-03-27 03:14:40: pid 19095: LOG: DB node id: 1 backend pid: 2446540 statement: SELECT version() 2023-03-27 03:14:40: pid 19095: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:14:40: pid 19095: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:14:40: pid 19095: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:14:40: pid 19095: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:14:40: pid 19095: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:14:40: pid 7535: LOG: fork a new child process with pid: 19152 2023-03-27 03:14:40: pid 18606: LOG: new connection received 2023-03-27 03:14:40: pid 18606: DETAIL: connecting host=10.0.0.20 port=48458 2023-03-27 03:14:40: pid 18606: LOG: using clear text authentication with frontend 2023-03-27 03:14:40: pid 18606: DETAIL: backend will still use md5 auth 2023-03-27 03:14:40: pid 18606: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:14:40: pid 18606: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 03:14:40: pid 18606: LOG: DB node id: 1 backend pid: 2457437 statement: SELECT version() 2023-03-27 03:19:42: pid 18753: ERROR: unable to read data from DB node 1 2023-03-27 03:19:42: pid 18753: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:19:42: pid 18753: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:19:42: pid 18753: LOG: statement: DISCARD ALL 2023-03-27 03:19:42: pid 7535: LOG: child process with pid: 19095 exits with status 256 2023-03-27 03:19:42: pid 18753: LOG: DB node id: 1 backend pid: 2446929 statement: SELECT version() 2023-03-27 03:19:42: pid 18753: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:19:42: pid 18753: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:19:42: pid 18753: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:19:42: pid 18753: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:19:42: pid 18753: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:19:42: pid 7535: LOG: fork a new child process with pid: 19153 2023-03-27 03:19:42: pid 18866: LOG: new connection received 2023-03-27 03:19:42: pid 18866: DETAIL: connecting host=10.0.0.20 port=47096 2023-03-27 03:19:42: pid 18866: LOG: using clear text authentication with frontend 2023-03-27 03:19:42: pid 18866: DETAIL: backend will still use md5 auth 2023-03-27 03:19:42: pid 18866: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:19:42: pid 18866: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 03:19:42: pid 18866: LOG: DB node id: 1 backend pid: 2457791 statement: SELECT version() 2023-03-27 03:24:43: pid 18500: ERROR: unable to read data from DB node 1 2023-03-27 03:24:43: pid 18500: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:24:43: pid 18500: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:24:43: pid 7535: LOG: child process with pid: 18753 exits with status 256 2023-03-27 03:24:43: pid 18500: LOG: statement: DISCARD ALL 2023-03-27 03:24:43: pid 18500: LOG: DB node id: 1 backend pid: 2447326 statement: SELECT version() 2023-03-27 03:24:43: pid 18500: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:24:43: pid 18500: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:24:43: pid 18500: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:24:43: pid 7535: LOG: fork a new child process with pid: 19154 2023-03-27 03:24:43: pid 18500: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:24:43: pid 18500: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:24:43: pid 18690: LOG: new connection received 2023-03-27 03:24:43: pid 18690: DETAIL: connecting host=10.0.0.20 port=43720 2023-03-27 03:24:43: pid 18690: LOG: using clear text authentication with frontend 2023-03-27 03:24:43: pid 18690: DETAIL: backend will still use md5 auth 2023-03-27 03:24:43: pid 18690: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:24:43: pid 18690: LOG: statement: select date_part('isoyear',now()) 2023-03-27 03:24:43: pid 18690: LOG: DB node id: 1 backend pid: 2458193 statement: SELECT version() 2023-03-27 03:29:44: pid 7535: LOG: child process with pid: 18500 exits with status 256 2023-03-27 03:29:44: pid 17298: ERROR: unable to read data from DB node 1 2023-03-27 03:29:44: pid 17298: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:29:44: pid 17298: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:29:44: pid 17298: LOG: statement: DISCARD ALL 2023-03-27 03:29:44: pid 17298: LOG: DB node id: 1 backend pid: 2447700 statement: SELECT version() 2023-03-27 03:29:44: pid 17298: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:29:44: pid 17298: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:29:44: pid 17298: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:29:44: pid 17298: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:29:44: pid 17298: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:29:44: pid 7535: LOG: fork a new child process with pid: 19155 2023-03-27 03:29:44: pid 18988: LOG: new connection received 2023-03-27 03:29:44: pid 18988: DETAIL: connecting host=10.0.0.20 port=41020 2023-03-27 03:29:44: pid 18988: LOG: using clear text authentication with frontend 2023-03-27 03:29:44: pid 18988: DETAIL: backend will still use md5 auth 2023-03-27 03:29:44: pid 18988: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:29:44: pid 18988: LOG: statement: select date_part('isoyear',now()) 2023-03-27 03:29:44: pid 18988: LOG: DB node id: 1 backend pid: 2458594 statement: SELECT version() 2023-03-27 03:34:46: pid 18719: ERROR: unable to read data from DB node 1 2023-03-27 03:34:46: pid 18719: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:34:46: pid 18719: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:34:46: pid 7535: LOG: child process with pid: 17298 exits with status 256 2023-03-27 03:34:46: pid 18719: LOG: statement: DISCARD ALL 2023-03-27 03:34:46: pid 18719: LOG: DB node id: 1 backend pid: 2449584 statement: SELECT version() 2023-03-27 03:34:46: pid 18719: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:34:46: pid 18719: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:34:46: pid 18719: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:34:46: pid 18719: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:34:46: pid 18719: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:34:46: pid 7535: LOG: fork a new child process with pid: 19156 2023-03-27 03:34:46: pid 19150: LOG: new connection received 2023-03-27 03:34:46: pid 19150: DETAIL: connecting host=10.0.0.20 port=52326 2023-03-27 03:34:46: pid 19150: LOG: using clear text authentication with frontend 2023-03-27 03:34:46: pid 19150: DETAIL: backend will still use md5 auth 2023-03-27 03:34:46: pid 19150: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:34:46: pid 19150: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'maintain' 2023-03-27 03:34:46: pid 19150: LOG: DB node id: 1 backend pid: 2459016 statement: SELECT version() 2023-03-27 03:39:47: pid 19042: ERROR: unable to read data from DB node 1 2023-03-27 03:39:47: pid 19042: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:39:47: pid 19042: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:39:47: pid 7535: LOG: child process with pid: 18719 exits with status 256 2023-03-27 03:39:47: pid 19042: LOG: statement: DISCARD ALL 2023-03-27 03:39:47: pid 19042: LOG: DB node id: 1 backend pid: 2449991 statement: SELECT version() 2023-03-27 03:39:47: pid 19042: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:39:47: pid 19042: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:39:47: pid 19042: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:39:47: pid 19042: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:39:47: pid 19042: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:39:47: pid 7535: LOG: fork a new child process with pid: 19157 2023-03-27 03:39:47: pid 18303: LOG: new connection received 2023-03-27 03:39:47: pid 18303: DETAIL: connecting host=10.0.0.20 port=41718 2023-03-27 03:39:47: pid 18303: LOG: using clear text authentication with frontend 2023-03-27 03:39:47: pid 18303: DETAIL: backend will still use md5 auth 2023-03-27 03:39:47: pid 18303: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:39:47: pid 18303: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 03:39:47: pid 18303: LOG: DB node id: 1 backend pid: 2459426 statement: SELECT version() 2023-03-27 03:44:48: pid 18568: ERROR: unable to read data from DB node 1 2023-03-27 03:44:48: pid 18568: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:44:48: pid 18568: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:44:48: pid 18568: LOG: statement: DISCARD ALL 2023-03-27 03:44:48: pid 7535: LOG: child process with pid: 19042 exits with status 256 2023-03-27 03:44:48: pid 18568: LOG: DB node id: 1 backend pid: 2450409 statement: SELECT version() 2023-03-27 03:44:48: pid 18568: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:44:48: pid 18568: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:44:48: pid 18568: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:44:48: pid 18568: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:44:48: pid 18568: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:44:48: pid 7535: LOG: fork a new child process with pid: 19158 2023-03-27 03:44:48: pid 18598: LOG: new connection received 2023-03-27 03:44:48: pid 18598: DETAIL: connecting host=10.0.0.20 port=50622 2023-03-27 03:44:48: pid 18598: LOG: using clear text authentication with frontend 2023-03-27 03:44:48: pid 18598: DETAIL: backend will still use md5 auth 2023-03-27 03:44:48: pid 18598: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:44:48: pid 18598: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 03:44:48: pid 18598: LOG: DB node id: 1 backend pid: 2459812 statement: SELECT version() 2023-03-27 03:49:49: pid 18043: ERROR: unable to read data from DB node 1 2023-03-27 03:49:49: pid 18043: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:49:49: pid 18043: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:49:49: pid 7535: LOG: child process with pid: 18568 exits with status 256 2023-03-27 03:49:49: pid 18043: LOG: statement: DISCARD ALL 2023-03-27 03:49:49: pid 18043: LOG: DB node id: 1 backend pid: 2450773 statement: SELECT version() 2023-03-27 03:49:49: pid 18043: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:49:49: pid 18043: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:49:49: pid 18043: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:49:49: pid 7535: LOG: fork a new child process with pid: 19159 2023-03-27 03:49:49: pid 18043: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:49:49: pid 18043: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:49:49: pid 19152: LOG: new connection received 2023-03-27 03:49:49: pid 19152: DETAIL: connecting host=10.0.0.20 port=46220 2023-03-27 03:49:49: pid 19152: LOG: using clear text authentication with frontend 2023-03-27 03:49:49: pid 19152: DETAIL: backend will still use md5 auth 2023-03-27 03:49:49: pid 19152: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:49:49: pid 19152: LOG: statement: select --'2023-03-26T16:23:41.762Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 03:49:49: pid 19152: LOG: DB node id: 1 backend pid: 2460178 statement: SELECT version() 2023-03-27 03:54:51: pid 18967: ERROR: unable to read data from DB node 1 2023-03-27 03:54:51: pid 18967: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:54:51: pid 18967: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:54:51: pid 7535: LOG: child process with pid: 18043 exits with status 256 2023-03-27 03:54:51: pid 18967: LOG: statement: DISCARD ALL 2023-03-27 03:54:51: pid 18967: LOG: DB node id: 1 backend pid: 2451145 statement: SELECT version() 2023-03-27 03:54:51: pid 18967: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:54:51: pid 18967: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:54:51: pid 18967: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:54:51: pid 18967: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:54:51: pid 18967: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:54:51: pid 7535: LOG: fork a new child process with pid: 19160 2023-03-27 03:54:51: pid 18669: LOG: new connection received 2023-03-27 03:54:51: pid 18669: DETAIL: connecting host=10.0.0.20 port=55754 2023-03-27 03:54:51: pid 18669: LOG: using clear text authentication with frontend 2023-03-27 03:54:51: pid 18669: DETAIL: backend will still use md5 auth 2023-03-27 03:54:51: pid 18669: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:54:51: pid 18669: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 03:54:51: pid 18669: LOG: DB node id: 1 backend pid: 2460556 statement: SELECT version() 2023-03-27 03:59:52: pid 18846: ERROR: unable to read data from DB node 1 2023-03-27 03:59:52: pid 18846: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 03:59:52: pid 18846: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:59:52: pid 18846: LOG: statement: DISCARD ALL 2023-03-27 03:59:52: pid 7535: LOG: child process with pid: 18967 exits with status 256 2023-03-27 03:59:52: pid 18846: LOG: DB node id: 1 backend pid: 2453093 statement: SELECT version() 2023-03-27 03:59:52: pid 18846: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:59:52: pid 18846: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 03:59:52: pid 18846: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 03:59:52: pid 18846: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 03:59:52: pid 18846: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 03:59:52: pid 7535: LOG: fork a new child process with pid: 19161 2023-03-27 03:59:52: pid 19083: LOG: new connection received 2023-03-27 03:59:52: pid 19083: DETAIL: connecting host=10.0.0.20 port=50938 2023-03-27 03:59:52: pid 19083: LOG: using clear text authentication with frontend 2023-03-27 03:59:52: pid 19083: DETAIL: backend will still use md5 auth 2023-03-27 03:59:52: pid 19083: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 03:59:52: pid 19083: LOG: statement: select --'2023-03-26T19:28:42.517Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 03:59:52: pid 19083: LOG: DB node id: 1 backend pid: 2460929 statement: SELECT version() 2023-03-27 04:04:53: pid 18695: ERROR: unable to read data from DB node 1 2023-03-27 04:04:53: pid 18695: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 04:04:53: pid 18695: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:04:53: pid 7535: LOG: child process with pid: 18846 exits with status 256 2023-03-27 04:04:53: pid 18695: LOG: statement: DISCARD ALL 2023-03-27 04:04:53: pid 18695: LOG: DB node id: 1 backend pid: 2453486 statement: SELECT version() 2023-03-27 04:04:53: pid 18695: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:04:53: pid 18695: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 04:04:53: pid 18695: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:04:53: pid 18695: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:04:53: pid 18695: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 04:04:53: pid 7535: LOG: fork a new child process with pid: 19162 2023-03-27 04:04:53: pid 19161: LOG: new connection received 2023-03-27 04:04:53: pid 19161: DETAIL: connecting host=10.0.0.20 port=36468 2023-03-27 04:04:53: pid 19161: LOG: using clear text authentication with frontend 2023-03-27 04:04:53: pid 19161: DETAIL: backend will still use md5 auth 2023-03-27 04:04:53: pid 19161: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 04:04:53: pid 19161: LOG: statement: select --'2023-03-26T16:58:42.112Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:04:53: pid 19161: LOG: DB node id: 1 backend pid: 2461314 statement: SELECT version() 2023-03-27 04:09:55: pid 18465: ERROR: unable to read data from DB node 1 2023-03-27 04:09:55: pid 18465: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 04:09:55: pid 18465: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:09:55: pid 7535: LOG: child process with pid: 18695 exits with status 256 2023-03-27 04:09:55: pid 18465: LOG: statement: DISCARD ALL 2023-03-27 04:09:55: pid 18465: LOG: DB node id: 1 backend pid: 2453862 statement: SELECT version() 2023-03-27 04:09:55: pid 18465: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:09:55: pid 18465: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 04:09:55: pid 18465: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:09:55: pid 18465: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:09:55: pid 18465: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 04:09:55: pid 7535: LOG: fork a new child process with pid: 19163 2023-03-27 04:09:55: pid 18650: LOG: new connection received 2023-03-27 04:09:55: pid 18650: DETAIL: connecting host=10.0.0.20 port=41474 2023-03-27 04:09:55: pid 18650: LOG: using clear text authentication with frontend 2023-03-27 04:09:55: pid 18650: DETAIL: backend will still use md5 auth 2023-03-27 04:09:55: pid 18650: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 04:09:55: pid 18650: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:09:55: pid 18650: LOG: DB node id: 1 backend pid: 2461705 statement: SELECT version() 2023-03-27 04:14:56: pid 19137: ERROR: unable to read data from DB node 1 2023-03-27 04:14:56: pid 19137: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 04:14:56: pid 19137: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:14:56: pid 7535: LOG: child process with pid: 18465 exits with status 256 2023-03-27 04:14:56: pid 19137: LOG: statement: DISCARD ALL 2023-03-27 04:14:56: pid 19137: LOG: DB node id: 1 backend pid: 2454270 statement: SELECT version() 2023-03-27 04:14:56: pid 19137: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:14:56: pid 19137: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 04:14:56: pid 19137: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:14:56: pid 19137: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:14:56: pid 19137: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 04:14:56: pid 7535: LOG: fork a new child process with pid: 19164 2023-03-27 04:14:56: pid 18263: LOG: new connection received 2023-03-27 04:14:56: pid 18263: DETAIL: connecting host=10.0.0.20 port=33196 2023-03-27 04:14:56: pid 18263: LOG: using clear text authentication with frontend 2023-03-27 04:14:56: pid 18263: DETAIL: backend will still use md5 auth 2023-03-27 04:14:56: pid 18263: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 04:14:56: pid 18263: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:14:56: pid 18263: LOG: DB node id: 1 backend pid: 2462117 statement: SELECT version() 2023-03-27 04:19:57: pid 18889: ERROR: unable to read data from DB node 1 2023-03-27 04:19:57: pid 18889: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 04:19:57: pid 18889: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:19:57: pid 18889: LOG: statement: DISCARD ALL 2023-03-27 04:19:57: pid 7535: LOG: child process with pid: 19137 exits with status 256 2023-03-27 04:19:57: pid 18889: LOG: DB node id: 1 backend pid: 2454703 statement: SELECT version() 2023-03-27 04:19:57: pid 18889: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:19:57: pid 18889: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 04:19:57: pid 18889: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:19:57: pid 18889: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:19:57: pid 18889: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 04:19:57: pid 7535: LOG: fork a new child process with pid: 19165 2023-03-27 04:19:57: pid 16869: LOG: new connection received 2023-03-27 04:19:57: pid 16869: DETAIL: connecting host=10.0.0.20 port=42378 2023-03-27 04:19:57: pid 16869: LOG: using clear text authentication with frontend 2023-03-27 04:19:57: pid 16869: DETAIL: backend will still use md5 auth 2023-03-27 04:19:57: pid 16869: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 04:19:57: pid 16869: LOG: statement: select --'2023-03-26T17:38:42.12Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:19:57: pid 16869: LOG: DB node id: 1 backend pid: 2462493 statement: SELECT version() 2023-03-27 04:24:58: pid 19146: ERROR: unable to read data from DB node 1 2023-03-27 04:24:58: pid 19146: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 04:24:58: pid 19146: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:24:58: pid 7535: LOG: child process with pid: 18889 exits with status 256 2023-03-27 04:24:58: pid 19146: LOG: statement: DISCARD ALL 2023-03-27 04:24:58: pid 19146: LOG: DB node id: 1 backend pid: 2455133 statement: SELECT version() 2023-03-27 04:24:58: pid 19146: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:24:58: pid 19146: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 04:24:58: pid 19146: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:24:58: pid 19146: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:24:58: pid 19146: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 04:24:58: pid 7535: LOG: fork a new child process with pid: 19166 2023-03-27 04:24:58: pid 19121: LOG: new connection received 2023-03-27 04:24:58: pid 19121: DETAIL: connecting host=10.0.0.20 port=35358 2023-03-27 04:24:58: pid 19121: LOG: using clear text authentication with frontend 2023-03-27 04:24:58: pid 19121: DETAIL: backend will still use md5 auth 2023-03-27 04:24:58: pid 19121: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 04:24:58: pid 19121: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 04:24:58: pid 19121: LOG: DB node id: 1 backend pid: 2462890 statement: SELECT version() 2023-03-27 04:30:00: pid 19126: ERROR: unable to read data from DB node 1 2023-03-27 04:30:00: pid 19126: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 04:30:00: pid 19126: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:30:00: pid 19126: LOG: statement: DISCARD ALL 2023-03-27 04:30:00: pid 7535: LOG: child process with pid: 19146 exits with status 256 2023-03-27 04:30:00: pid 19126: LOG: DB node id: 1 backend pid: 2455506 statement: SELECT version() 2023-03-27 04:30:00: pid 19126: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:30:00: pid 19126: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 04:30:00: pid 19126: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:30:00: pid 19126: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:30:00: pid 19126: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 04:30:00: pid 7535: LOG: fork a new child process with pid: 19167 2023-03-27 04:30:00: pid 18180: LOG: new connection received 2023-03-27 04:30:00: pid 18180: DETAIL: connecting host=10.0.0.20 port=40950 2023-03-27 04:30:00: pid 18180: LOG: using clear text authentication with frontend 2023-03-27 04:30:00: pid 18180: DETAIL: backend will still use md5 auth 2023-03-27 04:30:00: pid 18180: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 04:30:00: pid 18180: LOG: statement: select --'2023-03-26T20:15:07.12Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:30:00: pid 18180: LOG: DB node id: 1 backend pid: 2463273 statement: SELECT version() 2023-03-27 04:35:01: pid 18789: ERROR: unable to read data from DB node 1 2023-03-27 04:35:01: pid 18789: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 04:35:01: pid 18789: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:35:01: pid 18789: LOG: statement: DISCARD ALL 2023-03-27 04:35:01: pid 7535: LOG: child process with pid: 19126 exits with status 256 2023-03-27 04:35:01: pid 18789: LOG: DB node id: 1 backend pid: 2455892 statement: SELECT version() 2023-03-27 04:35:01: pid 18789: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:35:01: pid 18789: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 04:35:01: pid 18789: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:35:01: pid 18789: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:35:01: pid 18789: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 04:35:01: pid 7535: LOG: fork a new child process with pid: 19168 2023-03-27 04:35:01: pid 19033: LOG: new connection received 2023-03-27 04:35:01: pid 19033: DETAIL: connecting host=10.0.0.20 port=54346 2023-03-27 04:35:01: pid 19033: LOG: using clear text authentication with frontend 2023-03-27 04:35:01: pid 19033: DETAIL: backend will still use md5 auth 2023-03-27 04:35:01: pid 19033: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 04:35:01: pid 19033: LOG: statement: select --'2023-03-26T17:03:42.129Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:35:01: pid 19033: LOG: DB node id: 1 backend pid: 2463670 statement: SELECT version() 2023-03-27 04:40:02: pid 19129: ERROR: unable to read data from DB node 1 2023-03-27 04:40:02: pid 19129: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 04:40:02: pid 19129: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:40:02: pid 19129: LOG: statement: DISCARD ALL 2023-03-27 04:40:02: pid 19129: LOG: DB node id: 1 backend pid: 2456260 statement: SELECT version() 2023-03-27 04:40:02: pid 19129: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:40:02: pid 19129: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 04:40:02: pid 19129: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:40:02: pid 7535: LOG: child process with pid: 18789 exits with status 256 2023-03-27 04:40:02: pid 19129: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:40:02: pid 19129: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 04:40:02: pid 7535: LOG: fork a new child process with pid: 19169 2023-03-27 04:40:02: pid 18918: LOG: new connection received 2023-03-27 04:40:02: pid 18918: DETAIL: connecting host=10.0.0.20 port=37872 2023-03-27 04:40:02: pid 18918: LOG: using clear text authentication with frontend 2023-03-27 04:40:02: pid 18918: DETAIL: backend will still use md5 auth 2023-03-27 04:40:02: pid 18918: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 04:40:02: pid 18918: LOG: statement: select --'2023-03-26T16:43:41.777Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:40:02: pid 18918: LOG: DB node id: 1 backend pid: 2464061 statement: SELECT version() 2023-03-27 04:45:04: pid 19127: ERROR: unable to read data from DB node 1 2023-03-27 04:45:04: pid 19127: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 04:45:04: pid 19127: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:45:04: pid 19127: LOG: statement: DISCARD ALL 2023-03-27 04:45:04: pid 7535: LOG: child process with pid: 19129 exits with status 256 2023-03-27 04:45:04: pid 19127: LOG: DB node id: 1 backend pid: 2456654 statement: SELECT version() 2023-03-27 04:45:04: pid 19127: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:45:04: pid 19127: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 04:45:04: pid 19127: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 04:45:04: pid 19127: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 04:45:04: pid 19127: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 04:45:04: pid 7535: LOG: fork a new child process with pid: 19170 2023-03-27 04:45:04: pid 19127: LOG: new connection received 2023-03-27 04:45:04: pid 19127: DETAIL: connecting host=10.0.0.20 port=59116 2023-03-27 04:45:04: pid 19127: LOG: using clear text authentication with frontend 2023-03-27 04:45:04: pid 19127: DETAIL: backend will still use md5 auth 2023-03-27 04:45:04: pid 19127: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 04:45:04: pid 19127: LOG: statement: select case fsns.line when '' then '回库' else fsns.line end as line, case status when 'inuse' then '在线' when 'maintain' then '清洗室' else status end as status, count(*) as qty from report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='K' and enabled and status in ('inuse','maintain') and sn.sn = fsns.sn and fsns.line is not null and fsns.line not in ('','stock') group by fsns.line,status order by fsns.line,status desc 2023-03-27 04:45:04: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT version() 2023-03-27 04:45:04: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_sn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:04: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"plt_fixture_fixtureactionstatistic"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:04: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select case fsns.line when '' then '回库' else fsns.line end as line, case status when 'inuse' then '在线' when 'maintain' then '清洗室' else status end as status, count(*) as qty from report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='K' and enabled and status in ('inuse','maintain') and sn.sn = fsns.sn and fsns.line is not null and fsns.line not in ('','stock') group by fsns.line,status order by fsns.line,status desc 2023-03-27 04:45:04: pid 19127: LOG: statement: select --'2023-03-26T16:48:43.101Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:04: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T16:48:43.101Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:04: pid 19127: LOG: backend [1]: NOTICE: table "temp_bu_mlb_sc_distribution" does not exist, skipping 2023-03-27 04:45:05: pid 19127: LOG: backend [1]: NOTICE: table "temp_bu_mlb_sc_distribution_sum" does not exist, skipping 2023-03-27 04:45:08: pid 19127: LOG: statement: select --'2023-03-26T19:03:42.512Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:08: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:03:42.512Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:11: pid 19127: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:45:11: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"t_data_map"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:11: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn_lite"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:11: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_base_model"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:11: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn_log"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:11: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:11: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:45:11: pid 19127: LOG: statement: select --'2023-03-26T17:43:42.093Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:11: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:43:42.093Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:14: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 04:45:14: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 04:45:14: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:14: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"temp_fixure"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:14: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"f_dps_get_plan_simple_pca"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:14: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_sn_z"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:14: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:15: pid 19127: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:45:15: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:45:15: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:15: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:16: pid 19127: LOG: statement: select --'2023-03-26T17:18:42.116Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:16: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:18:42.116Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:18: pid 19127: LOG: statement: select --'2023-03-26T17:49:27.348Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:18: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:49:27.348Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:20: pid 19127: LOG: statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 04:45:20: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 04:45:20: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:20: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:21: pid 19127: LOG: statement: select --'2023-03-26T18:28:42.44Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:21: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:28:42.44Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:23: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:45:23: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 04:45:23: pid 19127: LOG: statement: select count(distinct f.sn) from public.plt_fixture_fixtureclean m, report.v_fixture_sn f where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = m.plt_sn and f.status = 'maintain' --and f.line = '' 2023-03-27 04:45:23: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"plt_fixture_fixtureclean"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:23: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(distinct f.sn) from public.plt_fixture_fixtureclean m, report.v_fixture_sn f where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = m.plt_sn and f.status = 'maintain' --and f.line = '' 2023-03-27 04:45:23: pid 19127: LOG: statement: select --'2023-03-26T19:58:42.715Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:23: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:58:42.715Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:27: pid 19127: LOG: statement: select --'2023-03-26T18:53:42.536Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:27: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:53:42.536Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:30: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:45:30: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 04:45:30: pid 19127: LOG: statement: select count(distinct f.sn) from public.plt_fixture_fixtureclean m, report.v_fixture_sn f where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = m.plt_sn and f.status = 'maintain' --and f.line = '' 2023-03-27 04:45:30: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(distinct f.sn) from public.plt_fixture_fixtureclean m, report.v_fixture_sn f where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = m.plt_sn and f.status = 'maintain' --and f.line = '' 2023-03-27 04:45:30: pid 19127: LOG: statement: select --'2023-03-26T17:48:43.453Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:30: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:48:43.453Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:33: pid 19127: LOG: statement: select --'2023-03-26T19:43:42.513Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:33: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:43:42.513Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:36: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:36: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:37: pid 19127: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:45:37: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:45:38: pid 19127: LOG: statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_other_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 04:45:38: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"tmp_maintenance_information_other_line_bar"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:45:38: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_other_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 04:45:38: pid 19127: LOG: statement: select --'2023-03-26T18:48:43.539Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:38: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:48:43.539Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:41: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 04:45:41: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 04:45:41: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:41: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:42: pid 19127: LOG: statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_other_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 04:45:42: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_other_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 04:45:42: pid 19127: LOG: statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_other_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 04:45:42: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_other_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 04:45:42: pid 19127: LOG: statement: select right(pn,3) as "设备类型",pn as "刮刀型号", tag, qty from ((select pn, '1总数' as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and pn not in ('Y0TTEST') and status <> 'scrap' group by pn) union (select pn, case status when 'inuse' then '3使用' when 'instock' then '2在库' when 'maintain' then '4清洗' when 'transfer' then '5移转' else status end as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn not in ('Y0TTEST') group by pn, status) union (select pn, fsns.line as tag, count(*) as qty FROM report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='Y' and enabled and status = 'inuse' and pn not in ('Y0TTEST') and sn.sn = fsns.sn group by pn, fsns.line, status) ) aa order by tag,pn 2023-03-27 04:45:42: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select right(pn,3) as "设备类型",pn as "刮刀型号", tag, qty from ((select pn, '1总数' as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and pn not in ('Y0TTEST') and status <> 'scrap' group by pn) union (select pn, case status when 'inuse' then '3使用' when 'instock' then '2在库' when 'maintain' then '4清洗' when 'transfer' then '5移转' else status end as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn not in ('Y0TTEST') group by pn, status) union (select pn, fsns.line as tag, count(*) as qty FROM report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='Y' and enabled and status = 'inuse' and pn not in ('Y0TTEST') and sn.sn = fsns.sn group by pn, fsns.line, status) ) aa order by tag,pn 2023-03-27 04:45:43: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:43: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:44: pid 19127: LOG: statement: select --'2023-03-26T20:18:42.716Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:44: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:18:42.716Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:47: pid 19127: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Keypart') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(x.pn,4) = y.key and y.category = 'Keypart') and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) = c.key and c.category = 'Keypart' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:45:47: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Keypart') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(x.pn,4) = y.key and y.category = 'Keypart') and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) = c.key and c.category = 'Keypart' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:45:47: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:47: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:45:48: pid 19127: LOG: statement: select --'2023-03-26T18:08:42.473Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:48: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:08:42.473Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:51: pid 19127: LOG: statement: select --'2023-03-26T16:38:41.798Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:51: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T16:38:41.798Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:54: pid 19127: LOG: statement: select --'2023-03-26T19:48:43.767Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:54: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:48:43.767Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:56: pid 19127: LOG: statement: select --'2023-03-26T20:28:42.74Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:56: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:28:42.74Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:58: pid 19127: LOG: statement: select --'2023-03-26T18:13:42.489Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:45:58: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:13:42.489Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:00: pid 19127: LOG: statement: select --'2023-03-26T17:33:42.108Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:00: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:33:42.108Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:02: pid 19127: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Keypart') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(x.pn,4) = y.key and y.category = 'Keypart') and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) = c.key and c.category = 'Keypart' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:46:02: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Keypart') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(x.pn,4) = y.key and y.category = 'Keypart') and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) = c.key and c.category = 'Keypart' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:46:02: pid 19127: LOG: statement: select --'2023-03-26T19:08:42.555Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:02: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:08:42.555Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:05: pid 19127: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:46:05: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"tmp_maintenance_information_mlb_sc_line_bar"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:46:05: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:46:05: pid 19127: LOG: statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 04:46:05: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 04:46:05: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:05: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:06: pid 19127: LOG: statement: select --'2023-03-26T20:33:42.738Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:06: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:33:42.738Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:08: pid 19127: LOG: statement: select --'2023-03-26T18:18:42.518Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:08: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:18:42.518Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:10: pid 19127: LOG: statement: select --'2023-03-26T18:38:42.478Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:10: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:38:42.478Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:12: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 04:46:12: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 04:46:12: pid 19127: LOG: statement: select --'2023-03-26T17:48:52.281Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:12: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:48:52.281Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:14: pid 19127: LOG: statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_expensive_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 04:46:14: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"tmp_maintenance_information_expensive_line_bar"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:46:14: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(dates,5) as dates, 送修, 维修, 报废, "<7天" as "<14天", ">30天" as ">14天" from( select distinct on (dates2) dates2, dates, 送修, 维修, 报废, "<7天", "7-30天", ">30天" from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_expensive_line_bar )b order by dates2 desc, dates desc limit 7 )cc order by dates 2023-03-27 04:46:14: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:14: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:15: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:15: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:16: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 04:46:16: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 04:46:16: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:16: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:17: pid 19127: LOG: statement: select --'2023-03-26T18:48:43.564Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:17: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:48:43.564Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:19: pid 19127: LOG: statement: select --'2023-03-26T19:13:42.542Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:19: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:13:42.542Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:22: pid 19127: LOG: statement: select --'2023-03-26T16:43:41.782Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:22: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T16:43:41.782Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:26: pid 19127: LOG: statement: select --'2023-03-26T17:13:42.117Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:26: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:13:42.117Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:28: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:28: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:29: pid 19127: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select count(*) from report.v_fixture_sn sn, fsns where fixturetype='K' and enabled and status = 'inuse' and sn.sn = fsns.sn and fsns.line <> '' and fsns.line is not null 2023-03-27 04:46:29: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"fsns"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 04:46:29: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select count(*) from report.v_fixture_sn sn, fsns where fixturetype='K' and enabled and status = 'inuse' and sn.sn = fsns.sn and fsns.line <> '' and fsns.line is not null 2023-03-27 04:46:30: pid 19127: LOG: statement: select --'2023-03-26T17:49:27.343Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:30: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:49:27.343Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:33: pid 19127: LOG: statement: select --'2023-03-26T19:53:42.742Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:33: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:53:42.742Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:36: pid 19127: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:46:36: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:46:36: pid 19127: LOG: statement: select --'2023-03-26T18:23:42.442Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:36: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:23:42.442Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:40: pid 19127: LOG: statement: select --'2023-03-26T17:28:42.091Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:40: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:28:42.091Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:43: pid 19127: LOG: statement: select --'2023-03-26T18:58:42.53Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:58:42.53Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:46: pid 19127: LOG: statement: select --'2023-03-26T20:23:42.712Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:46: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:23:42.712Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:49: pid 19127: LOG: statement: select --'2023-03-26T18:03:42.46Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:49: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:03:42.46Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:53: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'inuse' 2023-03-27 04:46:53: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'inuse' 2023-03-27 04:46:53: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:53: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:54: pid 19127: LOG: statement: select --'2023-03-26T19:18:42.501Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:54: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:18:42.501Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:57: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:57: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:46:58: pid 19127: LOG: statement: select --'2023-03-26T18:33:42.458Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:46:58: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T18:33:42.458Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:00: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:00: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:00: pid 19127: LOG: statement: select --'2023-03-26T17:48:52.278Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:00: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:48:52.278Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:02: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'maintain' 2023-03-27 04:47:02: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'maintain' 2023-03-27 04:47:02: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:02: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:03: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:03: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:03: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:03: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:04: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' 2023-03-27 04:47:04: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' 2023-03-27 04:47:04: pid 19127: LOG: statement: select --'2023-03-26T20:38:42.736Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:04: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:38:42.736Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:06: pid 19127: LOG: statement: select --'2023-03-26T17:53:42.485Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:06: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:53:42.485Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:08: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' 2023-03-27 04:47:08: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' 2023-03-27 04:47:08: pid 19127: LOG: statement: select --'2023-03-26T20:38:42.739Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:08: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:38:42.739Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:12: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:12: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:12: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:12: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:13: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:13: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:14: pid 19127: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:47:14: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:47:14: pid 19127: LOG: statement: select sum(useqty)/sum(totalqty) as rate from ((select count(*) as totalqty, 0 as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap') union (select 0 as totalqty, count(*) as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status in ('inuse','maintain')) ) aa 2023-03-27 04:47:14: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select sum(useqty)/sum(totalqty) as rate from ((select count(*) as totalqty, 0 as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap') union (select 0 as totalqty, count(*) as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status in ('inuse','maintain')) ) aa 2023-03-27 04:47:14: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:14: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:15: pid 19127: LOG: statement: select --'2023-03-26T16:53:42.086Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:15: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T16:53:42.086Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:18: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:18: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:18: pid 19127: LOG: statement: select case fsns.line when '' then '回库' else fsns.line end as line, case status when 'inuse' then '在线' when 'maintain' then '清洗室' else status end as status, count(*) as qty from report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='K' and enabled and status in ('inuse','maintain') and sn.sn = fsns.sn and fsns.line is not null and fsns.line not in ('','stock') group by fsns.line,status order by fsns.line,status desc 2023-03-27 04:47:18: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select case fsns.line when '' then '回库' else fsns.line end as line, case status when 'inuse' then '在线' when 'maintain' then '清洗室' else status end as status, count(*) as qty from report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='K' and enabled and status in ('inuse','maintain') and sn.sn = fsns.sn and fsns.line is not null and fsns.line not in ('','stock') group by fsns.line,status order by fsns.line,status desc 2023-03-27 04:47:19: pid 19127: LOG: statement: select aa.pngroup, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select '其他' as pngroup) aa left join -- 治具不良,待维修 (select '其他' as pngroup, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup) bb on aa.pngroup = bb.pngroup left join -- 维修小于14天 (select '其他' as pngroup, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') and a.sn = d.sn group by pngroup) union (select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup)) e group by pngroup) gg on aa.pngroup = gg.pngroup where slowday is not null 2023-03-27 04:47:19: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.pngroup, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select '其他' as pngroup) aa left join -- 治具不良,待维修 (select '其他' as pngroup, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup) bb on aa.pngroup = bb.pngroup left join -- 维修小于14天 (select '其他' as pngroup, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') and a.sn = d.sn group by pngroup) union (select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup)) e group by pngroup) gg on aa.pngroup = gg.pngroup where slowday is not null 2023-03-27 04:47:19: pid 19127: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:47:19: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:47:19: pid 19127: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:47:19: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:47:19: pid 19127: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:47:19: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:47:19: pid 19127: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:47:19: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:47:19: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='K' and enabled and status = 'maintain' 2023-03-27 04:47:19: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='K' and enabled and status = 'maintain' 2023-03-27 04:47:20: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='K' and enabled and status = 'maintain' 2023-03-27 04:47:20: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='K' and enabled and status = 'maintain' 2023-03-27 04:47:20: pid 19127: LOG: statement: select --'2023-03-26T19:33:42.517Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:20: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:33:42.517Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:23: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:23: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:24: pid 19127: LOG: statement: select --'2023-03-26T19:28:42.521Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:24: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:28:42.521Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:27: pid 19127: LOG: statement: select --'2023-03-26T19:23:42.501Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:27: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:23:42.501Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:29: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:29: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:30: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:30: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:31: pid 19127: LOG: statement: select --'2023-03-26T20:13:42.757Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:31: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:13:42.757Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:33: pid 19127: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:47:33: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='MLB' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 04:47:33: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'inuse' 2023-03-27 04:47:33: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'inuse' 2023-03-27 04:47:33: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 04:47:33: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 04:47:33: pid 19127: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 04:47:33: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 04:47:34: pid 19127: LOG: statement: select --'2023-03-26T17:08:42.118Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:34: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:08:42.118Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:37: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='K' and enabled and status = 'maintain' 2023-03-27 04:47:37: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='K' and enabled and status = 'maintain' 2023-03-27 04:47:37: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:37: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:38: pid 19127: LOG: statement: select --'2023-03-26T17:58:42.449Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:38: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T17:58:42.449Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:41: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:41: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:42: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 04:47:42: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 04:47:42: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:42: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:47:43: pid 19127: LOG: statement: select --'2023-03-26T19:38:42.569Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T19:38:42.569Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:47: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:47: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:47: pid 19127: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:47:47: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 04:47:47: pid 19127: LOG: statement: select --'2023-03-26T20:08:42.732Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:47: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:08:42.732Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:50: pid 19127: LOG: statement: select sum(useqty)/sum(totalqty) as rate from ((select count(*) as totalqty, 0 as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap') union (select 0 as totalqty, count(*) as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status in ('inuse','maintain')) ) aa 2023-03-27 04:47:50: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select sum(useqty)/sum(totalqty) as rate from ((select count(*) as totalqty, 0 as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap') union (select 0 as totalqty, count(*) as useqty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status in ('inuse','maintain')) ) aa 2023-03-27 04:47:50: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:50: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:50: pid 19127: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 04:47:50: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 04:47:51: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:51: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 04:47:51: pid 19127: LOG: statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 04:47:51: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 04:47:51: pid 19127: LOG: statement: select --'2023-03-26T20:13:42.761Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:47:51: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:13:42.761Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:48:44: pid 19127: LOG: statement: select --'2023-03-26T20:48:43.986Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:48:44: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:48:43.986Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:48:47: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:48:47: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:53:42: pid 19127: LOG: statement: select --'2023-03-26T20:53:42.887Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:53:42: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:53:42.887Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:54:58: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'inuse' 2023-03-27 04:54:58: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'inuse' 2023-03-27 04:54:58: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'maintain' 2023-03-27 04:54:58: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'maintain' 2023-03-27 04:54:58: pid 19127: LOG: statement: select count(distinct f.sn) from public.plt_fixture_fixtureclean m, report.v_fixture_sn f where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = m.plt_sn and f.status = 'maintain' --and f.line = '' 2023-03-27 04:54:58: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(distinct f.sn) from public.plt_fixture_fixtureclean m, report.v_fixture_sn f where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = m.plt_sn and f.status = 'maintain' --and f.line = '' 2023-03-27 04:54:58: pid 19127: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='K' and enabled and status = 'maintain' 2023-03-27 04:54:58: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select count(*) from report.v_fixture_sn where fixturetype='K' and enabled and status = 'maintain' 2023-03-27 04:54:58: pid 19127: LOG: statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 04:54:58: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 04:58:43: pid 19127: LOG: statement: select --'2023-03-26T20:58:42.986Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:58:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T20:58:42.986Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 04:58:46: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 04:58:46: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:01:07: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 05:01:07: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 05:02:22: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 05:02:22: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 05:03:42: pid 19127: LOG: statement: select --'2023-03-26T21:03:42.946Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:03:42: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:03:42.946Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:08:43: pid 19127: LOG: statement: select --'2023-03-26T21:08:42.965Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:08:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:08:42.965Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:13:43: pid 19127: LOG: statement: select --'2023-03-26T21:13:42.97Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:13:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:13:42.97Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:13:46: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:13:46: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:14:32: pid 19127: LOG: statement: select right(pn,3) as "设备类型",pn as "刮刀型号", tag, qty from ((select pn, '1总数' as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and pn not in ('Y0TTEST') and status <> 'scrap' group by pn) union (select pn, case status when 'inuse' then '3使用' when 'instock' then '2在库' when 'maintain' then '4清洗' when 'transfer' then '5移转' else status end as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn not in ('Y0TTEST') group by pn, status) union (select pn, fsns.line as tag, count(*) as qty FROM report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='Y' and enabled and status = 'inuse' and pn not in ('Y0TTEST') and sn.sn = fsns.sn group by pn, fsns.line, status) ) aa order by tag,pn 2023-03-27 05:14:32: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select right(pn,3) as "设备类型",pn as "刮刀型号", tag, qty from ((select pn, '1总数' as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and pn not in ('Y0TTEST') and status <> 'scrap' group by pn) union (select pn, case status when 'inuse' then '3使用' when 'instock' then '2在库' when 'maintain' then '4清洗' when 'transfer' then '5移转' else status end as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn not in ('Y0TTEST') group by pn, status) union (select pn, fsns.line as tag, count(*) as qty FROM report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='Y' and enabled and status = 'inuse' and pn not in ('Y0TTEST') and sn.sn = fsns.sn group by pn, fsns.line, status) ) aa order by tag,pn 2023-03-27 05:17:07: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 05:17:07: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 05:17:07: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 05:17:07: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 05:17:11: pid 19127: LOG: statement: (select '>1年料号(笔数)' as 材料类型, to_char((select count(p.pn) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 1 and m.order = 1 and strpos(m.catalog,p.catalog) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')comm, to_char((select count(p.pn) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 2 and m.order = 2 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')me, to_char((select count(p.pn) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 2 and m.order = 3 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')aoi, to_char( (select sum(qty) from ((select 'Probe',count(p.pn) as qty from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 1 and m.order = 4 and strpos(m.catalog,p.catalog) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00' ) union ( select 'te',count(p.pn) as qty from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 4 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00' and stock_qty > 0 )) aa)::numeric, '999G999G999G999G999G999') te ) union (select '>1年金额(RMB)' as 材料类型, to_char((select sum(p.price * p.stock_qty) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 1 and m.order = 1 and strpos(m.catalog,p.catalog) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')comm, to_char((select sum(p.price * p.stock_qty) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 2 and m.order = 2 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')me, to_char((select sum(p.price * p.stock_qty) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 2 and m.order = 3 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')aoi, to_char( (select sum(account) from ((select 'Probe',sum(p.price * p.stock_qty) as account from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 1 and m.order = 4 and strpos(m.catalog,p.catalog) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00' ) union ( select 'te',sum(p.price * p.stock_qty) as account from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 4 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and lastoutdays > 365 -- and date_part('days', now() - p.lastout)> 365 and enabled=1 and lastout > '1970-01-02 00:00:00' and stock_qty > 0 )) aa)::numeric, '999G999G999G999G999G999')te ) 2023-03-27 05:17:11: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"t_spare_pn_map"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:17:11: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"mv_spare_pn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:17:11: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: (select '>1年料号(笔数)' as 材料类型, to_char((select count(p.pn) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 1 and m.order = 1 and strpos(m.catalog,p.catalog) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')comm, to_char((select count(p.pn) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 2 and m.order = 2 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')me, to_char((select count(p.pn) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 2 and m.order = 3 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')aoi, to_char( (select sum(qty) from ((select 'Probe',count(p.pn) as qty from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 1 and m.order = 4 and strpos(m.catalog,p.catalog) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00' ) union ( select 'te',count(p.pn) as qty from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 4 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00' and stock_qty > 0 )) aa)::numeric, '999G999G999G999G999G999') te ) union (select '>1年金额(RMB)' as 材料类型, to_char((select sum(p.price * p.stock_qty) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 1 and m.order = 1 and strpos(m.catalog,p.catalog) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')comm, to_char((select sum(p.price * p.stock_qty) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 2 and m.order = 2 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')me, to_char((select sum(p.price * p.stock_qty) from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 2 and m.order = 3 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00')::numeric, '999G999G999G999G999G999')aoi, to_char( (select sum(account) from ((select 'Probe',sum(p.price * p.stock_qty) as account from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 1 and m.order = 4 and strpos(m.catalog,p.catalog) > 0 and p.stock_qty > 0 and lastoutdays > 365 and enabled=1 and lastout > '1970-01-02 00:00:00' ) union ( select 'te',sum(p.price * p.stock_qty) as account from report.t_spare_pn_map m, report.mv_spare_pn p where m.typeid = 4 and strpos(m.catalog,p.catalog) > 0 and strpos(m.department,p.department) > 0 and lastoutdays > 365 -- and date_part('days', now() - p.lastout)> 365 and enabled=1 and lastout > '1970-01-02 00:00:00' and stock_qty > 0 )) aa)::numeric, '999G999G999G999G999G999')te ) 2023-03-27 05:17:12: pid 19127: LOG: statement: select 'W'||ss.week as week, sum(case action = '入库' when true then ss.qty else 0 end * pn.price)/10000 as 入库, sum(case action = '领用' when true then ss.qty else 0 end * pn.price)/10000 as 领用, sum(case action = '报废' when true then ss.qty else 0 end * pn.price)/10000 as 报废, case ss.tag when extract (isoyear from now())::integer * 52 + 53 then ss.tag - 52 else ss.tag end as tag1 from (select pn, actionsimple as action, qty, extract (week from cdt)::integer as week, extract (isoyear from cdt)::integer * 52 + extract (week from cdt)::integer as tag from report.mv_spare_pn_log where cdt >= date_trunc('week', now()) - interval '49d' -- extract (isoyear from cdt)::integer * 52 + extract (week from cdt)::integer -- > extract (isoyear from now())::integer * 52 + extract (week from now())::integer - 8 and actionsimple in ('入库','领用','报废')) ss left join report.mv_spare_pn pn on ss.pn = pn.pn group by ss.tag, ss.week order by ss.tag, ss.week desc 2023-03-27 05:17:12: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"mv_spare_pn_log"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:17:12: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W'||ss.week as week, sum(case action = '入库' when true then ss.qty else 0 end * pn.price)/10000 as 入库, sum(case action = '领用' when true then ss.qty else 0 end * pn.price)/10000 as 领用, sum(case action = '报废' when true then ss.qty else 0 end * pn.price)/10000 as 报废, case ss.tag when extract (isoyear from now())::integer * 52 + 53 then ss.tag - 52 else ss.tag end as tag1 from (select pn, actionsimple as action, qty, extract (week from cdt)::integer as week, extract (isoyear from cdt)::integer * 52 + extract (week from cdt)::integer as tag from report.mv_spare_pn_log where cdt >= date_trunc('week', now()) - interval '49d' -- extract (isoyear from cdt)::integer * 52 + extract (week from cdt)::integer -- > extract (isoyear from now())::integer * 52 + extract (week from now())::integer - 8 and actionsimple in ('入库','领用','报废')) ss left join report.mv_spare_pn pn on ss.pn = pn.pn group by ss.tag, ss.week order by ss.tag, ss.week desc 2023-03-27 05:18:43: pid 19127: LOG: statement: select --'2023-03-26T21:18:42.961Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:18:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:18:42.961Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:18:46: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:18:46: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:23:43: pid 19127: LOG: statement: select --'2023-03-26T21:23:42.954Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:23:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:23:42.954Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:28:43: pid 19127: LOG: statement: select --'2023-03-26T21:28:42.978Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:28:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:28:42.978Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:28:46: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:28:46: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:32:32: pid 19127: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 05:32:32: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select 'W' || date_part('week',now()) 2023-03-27 05:33:08: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 05:33:08: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 05:33:43: pid 19127: LOG: statement: select --'2023-03-26T21:33:42.961Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:33:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:33:42.961Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:33:46: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:33:46: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:38:43: pid 19127: LOG: statement: select --'2023-03-26T21:38:42.959Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:38:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:38:42.959Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:38:46: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:38:46: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:43:43: pid 19127: LOG: statement: select --'2023-03-26T21:43:43.009Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:43:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:43:43.009Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:46:38: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:46:38: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"temp_fixure"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:46:38: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"f_dps_get_plan_simple_pca"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:46:38: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_sn_z"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:46:38: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"t_data_map"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:46:38: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_base_model"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:46:38: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:48:44: pid 19127: LOG: statement: select --'2023-03-26T21:48:44.133Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:48:44: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:48:44.133Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:49:08: pid 19127: LOG: statement: select date_part('isoyear',now()) 2023-03-27 05:49:08: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select date_part('isoyear',now()) 2023-03-27 05:50:44: pid 19127: LOG: statement: select aa.pngroup, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select '其他' as pngroup) aa left join -- 治具不良,待维修 (select '其他' as pngroup, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup) bb on aa.pngroup = bb.pngroup left join -- 维修小于14天 (select '其他' as pngroup, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') and a.sn = d.sn group by pngroup) union (select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup)) e group by pngroup) gg on aa.pngroup = gg.pngroup where slowday is not null 2023-03-27 05:50:44: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn_lite"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:50:44: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn_log"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:50:44: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_spare_sn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:50:44: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select aa.pngroup, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select '其他' as pngroup) aa left join -- 治具不良,待维修 (select '其他' as pngroup, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup) bb on aa.pngroup = bb.pngroup left join -- 维修小于14天 (select '其他' as pngroup, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') and a.sn = d.sn group by pngroup) union (select '其他' as pngroup, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) not in ('6021','6022','6025','6Y21','6Y22','6Y25','6Z21','6Z22','6Z25','1395','1597') group by pngroup)) e group by pngroup) gg on aa.pngroup = gg.pngroup where slowday is not null 2023-03-27 05:50:45: pid 19127: LOG: statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 05:50:45: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"tmp_maintenance_information_mlb_sc_line_bar"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 05:50:45: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: select left(bb.dates,5) as dates, 送修, 维修, 报废, bb."<7天" as "<14天", ">30天" as ">14天" from( select qq.*, "<7天", "7-30天", ">30天" from( select board_type,dates2, max(dates)dates, sum(送修)送修, sum(维修)维修, sum(报废)报废 from( select *, substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )b group by board_type, dates2 order by dates desc )qq left join( select distinct on(dates2)dates2,dates,"<7天", "7-30天", ">30天" from( select dates,"<7天", "7-30天", ">30天", substring(dates from 1 for 5)dates2 from report.tmp_maintenance_information_mlb_sc_line_bar where board_type='SC' )a order by dates2 desc, dates desc limit 8 )pp on qq.dates=pp.dates order by qq.dates2 desc limit 7 )bb order by dates 2023-03-27 05:53:43: pid 19127: LOG: statement: select --'2023-03-26T21:53:43.086Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:53:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:53:43.086Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:58:43: pid 19127: LOG: statement: select --'2023-03-26T21:58:43.117Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:58:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T21:58:43.117Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 05:58:46: pid 19127: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 05:58:46: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 06:03:43: pid 19127: LOG: statement: select --'2023-03-26T22:03:43.094Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:03:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T22:03:43.094Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:08:43: pid 19127: LOG: statement: select --'2023-03-26T22:08:43.129Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:08:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T22:08:43.129Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:13:43: pid 19127: LOG: statement: select --'2023-03-26T22:13:43.15Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:13:43: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: select --'2023-03-26T22:13:43.15Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:14:41: pid 19127: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 06:14:41: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"plt_fixture_fixtureclean"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 06:14:41: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"v_fixture_sn"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 06:14:41: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"fsns"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 06:14:41: pid 19127: LOG: DB node id: 1 backend pid: 2464459 statement: SELECT count(*) FROM pg_class AS c, pg_namespace AS n WHERE c.oid = pg_catalog.to_regclass('"plt_fixture_fixtureactionstatistic"') AND c.relnamespace = n.oid AND n.nspname = 'pg_catalog' 2023-03-27 06:14:41: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 06:14:41: pid 19127: ERROR: unable to read data from DB node 0 2023-03-27 06:14:41: pid 19127: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:14:41: pid 19127: LOG: statement: DISCARD ALL 2023-03-27 06:14:41: pid 19127: LOG: DB node id: 0 backend pid: 1025675 statement: DISCARD ALL 2023-03-27 06:14:41: pid 19127: WARNING: write on backend 0 failed with error :"Broken pipe" 2023-03-27 06:14:41: pid 19127: DETAIL: while trying to write data from offset: 0 wlen: 17 2023-03-27 06:14:41: pid 19127: WARNING: write on backend 0 failed with error :"Broken pipe" 2023-03-27 06:14:41: pid 19127: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:14:41: pid 19120: LOG: new connection received 2023-03-27 06:14:41: pid 19120: DETAIL: connecting host=10.0.0.20 port=34822 2023-03-27 06:14:41: pid 19120: LOG: using clear text authentication with frontend 2023-03-27 06:14:41: pid 19120: DETAIL: backend will still use md5 auth 2023-03-27 06:14:41: pid 19120: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:14:41: pid 19120: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 06:14:41: pid 19120: LOG: DB node id: 1 backend pid: 2471375 statement: SELECT version() 2023-03-27 06:19:42: pid 19016: ERROR: unable to read data from DB node 1 2023-03-27 06:19:42: pid 19016: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:19:42: pid 19016: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:19:42: pid 7535: LOG: child process with pid: 19127 exits with status 256 2023-03-27 06:19:42: pid 19016: LOG: statement: DISCARD ALL 2023-03-27 06:19:42: pid 19016: LOG: DB node id: 1 backend pid: 2457033 statement: SELECT version() 2023-03-27 06:19:42: pid 19016: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:19:42: pid 19016: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 06:19:42: pid 19016: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:19:42: pid 19016: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:19:42: pid 19016: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:19:42: pid 7535: LOG: fork a new child process with pid: 19171 2023-03-27 06:19:42: pid 19090: LOG: new connection received 2023-03-27 06:19:42: pid 19090: DETAIL: connecting host=10.0.0.20 port=55504 2023-03-27 06:19:42: pid 19090: LOG: using clear text authentication with frontend 2023-03-27 06:19:42: pid 19090: DETAIL: backend will still use md5 auth 2023-03-27 06:19:42: pid 19090: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:19:42: pid 19090: LOG: statement: select --'2023-03-26T20:08:42.735Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:19:42: pid 19090: LOG: DB node id: 1 backend pid: 2471721 statement: SELECT version() 2023-03-27 06:24:44: pid 18606: ERROR: unable to read data from DB node 1 2023-03-27 06:24:44: pid 18606: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:24:44: pid 18606: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:24:44: pid 7535: LOG: child process with pid: 19016 exits with status 256 2023-03-27 06:24:44: pid 18606: LOG: statement: DISCARD ALL 2023-03-27 06:24:44: pid 18606: LOG: DB node id: 1 backend pid: 2457437 statement: SELECT version() 2023-03-27 06:24:44: pid 18606: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:24:44: pid 18606: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 06:24:44: pid 18606: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:24:44: pid 18606: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:24:44: pid 18606: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:24:44: pid 7535: LOG: fork a new child process with pid: 19172 2023-03-27 06:24:44: pid 19100: LOG: new connection received 2023-03-27 06:24:44: pid 19100: DETAIL: connecting host=10.0.0.20 port=49478 2023-03-27 06:24:44: pid 19100: LOG: using clear text authentication with frontend 2023-03-27 06:24:44: pid 19100: DETAIL: backend will still use md5 auth 2023-03-27 06:24:44: pid 19100: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:24:44: pid 19100: LOG: statement: select --'2023-03-26T21:58:43.122Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:24:44: pid 19100: LOG: DB node id: 1 backend pid: 2472124 statement: SELECT version() 2023-03-27 06:29:45: pid 18866: ERROR: unable to read data from DB node 1 2023-03-27 06:29:45: pid 18866: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:29:45: pid 18866: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:29:45: pid 7535: LOG: child process with pid: 18606 exits with status 256 2023-03-27 06:29:45: pid 18866: LOG: statement: DISCARD ALL 2023-03-27 06:29:45: pid 7535: LOG: fork a new child process with pid: 19173 2023-03-27 06:29:45: pid 18866: LOG: DB node id: 1 backend pid: 2457791 statement: SELECT version() 2023-03-27 06:29:45: pid 18866: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:29:45: pid 18866: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 06:29:45: pid 18866: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:29:45: pid 18866: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:29:45: pid 18866: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:29:45: pid 18467: LOG: new connection received 2023-03-27 06:29:45: pid 18467: DETAIL: connecting host=10.0.0.20 port=48932 2023-03-27 06:29:45: pid 18467: LOG: using clear text authentication with frontend 2023-03-27 06:29:45: pid 18467: DETAIL: backend will still use md5 auth 2023-03-27 06:29:45: pid 18467: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:29:45: pid 18467: LOG: statement: select date_part('isoyear',now()) 2023-03-27 06:29:45: pid 18467: LOG: DB node id: 1 backend pid: 2472595 statement: SELECT version() 2023-03-27 06:34:46: pid 18690: ERROR: unable to read data from DB node 1 2023-03-27 06:34:46: pid 18690: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:34:46: pid 18690: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:34:46: pid 7535: LOG: child process with pid: 18866 exits with status 256 2023-03-27 06:34:46: pid 18690: LOG: statement: DISCARD ALL 2023-03-27 06:34:46: pid 18690: LOG: DB node id: 1 backend pid: 2458193 statement: SELECT version() 2023-03-27 06:34:46: pid 18690: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:34:46: pid 18690: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 06:34:46: pid 18690: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:34:46: pid 18690: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:34:46: pid 18690: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:34:46: pid 7535: LOG: fork a new child process with pid: 19174 2023-03-27 06:34:46: pid 19131: LOG: new connection received 2023-03-27 06:34:46: pid 19131: DETAIL: connecting host=10.0.0.20 port=52958 2023-03-27 06:34:46: pid 19131: LOG: using clear text authentication with frontend 2023-03-27 06:34:46: pid 19131: DETAIL: backend will still use md5 auth 2023-03-27 06:34:46: pid 19131: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:34:46: pid 19131: LOG: statement: select --'2023-03-26T21:18:42.958Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:34:46: pid 19131: LOG: DB node id: 1 backend pid: 2473015 statement: SELECT version() 2023-03-27 06:39:48: pid 18988: ERROR: unable to read data from DB node 1 2023-03-27 06:39:48: pid 18988: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:39:48: pid 18988: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:39:48: pid 7535: LOG: child process with pid: 18690 exits with status 256 2023-03-27 06:39:48: pid 18988: LOG: statement: DISCARD ALL 2023-03-27 06:39:48: pid 18988: LOG: DB node id: 1 backend pid: 2458594 statement: SELECT version() 2023-03-27 06:39:48: pid 18988: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:39:48: pid 18988: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 06:39:48: pid 18988: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:39:48: pid 18988: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:39:48: pid 18988: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:39:48: pid 7535: LOG: fork a new child process with pid: 19175 2023-03-27 06:39:48: pid 19166: LOG: new connection received 2023-03-27 06:39:48: pid 19166: DETAIL: connecting host=10.0.0.20 port=47812 2023-03-27 06:39:48: pid 19166: LOG: using clear text authentication with frontend 2023-03-27 06:39:48: pid 19166: DETAIL: backend will still use md5 auth 2023-03-27 06:39:48: pid 19166: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:39:48: pid 19166: LOG: statement: select --'2023-03-26T17:28:42.08Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:39:48: pid 19166: LOG: DB node id: 1 backend pid: 2473418 statement: SELECT version() 2023-03-27 06:44:49: pid 19150: ERROR: unable to read data from DB node 1 2023-03-27 06:44:49: pid 19150: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:44:49: pid 19150: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:44:49: pid 19150: LOG: statement: DISCARD ALL 2023-03-27 06:44:49: pid 19150: LOG: DB node id: 1 backend pid: 2459016 statement: SELECT version() 2023-03-27 06:44:49: pid 7535: LOG: child process with pid: 18988 exits with status 256 2023-03-27 06:44:49: pid 19150: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:44:49: pid 19150: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 06:44:49: pid 19150: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:44:49: pid 19150: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:44:49: pid 19150: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:44:49: pid 7535: LOG: fork a new child process with pid: 19176 2023-03-27 06:44:49: pid 18387: LOG: new connection received 2023-03-27 06:44:49: pid 18387: DETAIL: connecting host=10.0.0.20 port=43988 2023-03-27 06:44:49: pid 18387: LOG: using clear text authentication with frontend 2023-03-27 06:44:49: pid 18387: DETAIL: backend will still use md5 auth 2023-03-27 06:44:49: pid 18387: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:44:49: pid 18387: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Keypart') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn x, report.t_data_map y where x.status in ('verifing','repairing','repaired') and left(x.pn,4) = y.key and y.category = 'Keypart') and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) = c.key and c.category = 'Keypart' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) = c.key and c.category = 'Keypart' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 06:44:49: pid 18387: LOG: DB node id: 1 backend pid: 2473827 statement: SELECT version() 2023-03-27 06:49:50: pid 18303: ERROR: unable to read data from DB node 1 2023-03-27 06:49:50: pid 18303: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:49:50: pid 18303: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:49:50: pid 18303: LOG: statement: DISCARD ALL 2023-03-27 06:49:50: pid 18303: LOG: DB node id: 1 backend pid: 2459426 statement: SELECT version() 2023-03-27 06:49:50: pid 7535: LOG: child process with pid: 19150 exits with status 256 2023-03-27 06:49:50: pid 18303: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:49:50: pid 18303: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 06:49:50: pid 18303: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:49:50: pid 18303: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:49:50: pid 18303: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:49:50: pid 7535: LOG: fork a new child process with pid: 19177 2023-03-27 06:49:50: pid 19167: LOG: new connection received 2023-03-27 06:49:50: pid 19167: DETAIL: connecting host=10.0.0.20 port=35942 2023-03-27 06:49:50: pid 19167: LOG: using clear text authentication with frontend 2023-03-27 06:49:50: pid 19167: DETAIL: backend will still use md5 auth 2023-03-27 06:49:50: pid 19167: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:49:50: pid 19167: LOG: statement: select --'2023-03-26T22:33:43.206Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:49:50: pid 19167: LOG: DB node id: 1 backend pid: 2474191 statement: SELECT version() 2023-03-27 06:54:51: pid 18598: ERROR: unable to read data from DB node 1 2023-03-27 06:54:51: pid 18598: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:54:51: pid 18598: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:54:51: pid 7535: LOG: child process with pid: 18303 exits with status 256 2023-03-27 06:54:51: pid 18598: LOG: statement: DISCARD ALL 2023-03-27 06:54:51: pid 18598: LOG: DB node id: 1 backend pid: 2459812 statement: SELECT version() 2023-03-27 06:54:51: pid 18598: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:54:51: pid 18598: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 06:54:51: pid 18598: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:54:51: pid 18598: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:54:51: pid 18598: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:54:51: pid 7535: LOG: fork a new child process with pid: 19178 2023-03-27 06:54:51: pid 19172: LOG: new connection received 2023-03-27 06:54:51: pid 19172: DETAIL: connecting host=10.0.0.20 port=56016 2023-03-27 06:54:51: pid 19172: LOG: using clear text authentication with frontend 2023-03-27 06:54:51: pid 19172: DETAIL: backend will still use md5 auth 2023-03-27 06:54:51: pid 19172: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:54:51: pid 19172: LOG: statement: select --'2023-03-26T21:08:42.96Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:54:51: pid 19172: LOG: DB node id: 1 backend pid: 2474606 statement: SELECT version() 2023-03-27 06:59:53: pid 19152: ERROR: unable to read data from DB node 1 2023-03-27 06:59:53: pid 19152: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 06:59:53: pid 19152: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:59:53: pid 7535: LOG: child process with pid: 18598 exits with status 256 2023-03-27 06:59:53: pid 19152: LOG: statement: DISCARD ALL 2023-03-27 06:59:53: pid 19152: LOG: DB node id: 1 backend pid: 2460178 statement: SELECT version() 2023-03-27 06:59:53: pid 19152: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:59:53: pid 19152: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 06:59:53: pid 19152: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 06:59:53: pid 19152: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 06:59:53: pid 19152: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 06:59:53: pid 7535: LOG: fork a new child process with pid: 19179 2023-03-27 06:59:53: pid 19179: LOG: new connection received 2023-03-27 06:59:53: pid 19179: DETAIL: connecting host=10.0.0.20 port=58520 2023-03-27 06:59:53: pid 19179: LOG: using clear text authentication with frontend 2023-03-27 06:59:53: pid 19179: DETAIL: backend will still use md5 auth 2023-03-27 06:59:53: pid 19179: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 06:59:53: pid 19179: LOG: statement: select --'2023-03-26T19:03:42.511Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 06:59:53: pid 19179: LOG: DB node id: 1 backend pid: 2475035 statement: SELECT version() 2023-03-27 07:04:54: pid 18669: ERROR: unable to read data from DB node 1 2023-03-27 07:04:54: pid 18669: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:04:54: pid 18669: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:04:54: pid 7535: LOG: child process with pid: 19152 exits with status 256 2023-03-27 07:04:54: pid 18669: LOG: statement: DISCARD ALL 2023-03-27 07:04:54: pid 18669: LOG: DB node id: 1 backend pid: 2460556 statement: SELECT version() 2023-03-27 07:04:54: pid 18669: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:04:54: pid 18669: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:04:54: pid 18669: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:04:54: pid 18669: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:04:54: pid 18669: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:04:54: pid 7535: LOG: fork a new child process with pid: 19180 2023-03-27 07:04:54: pid 18269: LOG: new connection received 2023-03-27 07:04:54: pid 18269: DETAIL: connecting host=10.0.0.20 port=58300 2023-03-27 07:04:54: pid 18269: LOG: using clear text authentication with frontend 2023-03-27 07:04:54: pid 18269: DETAIL: backend will still use md5 auth 2023-03-27 07:04:54: pid 18269: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:04:54: pid 18269: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'MLB' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 07:04:54: pid 18269: LOG: DB node id: 1 backend pid: 2476154 statement: SELECT version() 2023-03-27 07:09:55: pid 19083: ERROR: unable to read data from DB node 1 2023-03-27 07:09:55: pid 19083: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:09:55: pid 19083: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:09:55: pid 7535: LOG: child process with pid: 18669 exits with status 256 2023-03-27 07:09:55: pid 19083: LOG: statement: DISCARD ALL 2023-03-27 07:09:55: pid 19083: LOG: DB node id: 1 backend pid: 2460929 statement: SELECT version() 2023-03-27 07:09:55: pid 19083: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:09:55: pid 19083: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:09:55: pid 19083: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:09:55: pid 19083: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:09:55: pid 19083: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:09:55: pid 7535: LOG: fork a new child process with pid: 19181 2023-03-27 07:09:55: pid 19002: LOG: new connection received 2023-03-27 07:09:55: pid 19002: DETAIL: connecting host=10.0.0.20 port=60192 2023-03-27 07:09:55: pid 19002: LOG: using clear text authentication with frontend 2023-03-27 07:09:55: pid 19002: DETAIL: backend will still use md5 auth 2023-03-27 07:09:55: pid 19002: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:09:55: pid 19002: LOG: statement: select right(pn,3) as "设备类型",pn as "刮刀型号", tag, qty from ((select pn, '1总数' as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and pn not in ('Y0TTEST') and status <> 'scrap' group by pn) union (select pn, case status when 'inuse' then '3使用' when 'instock' then '2在库' when 'maintain' then '4清洗' when 'transfer' then '5移转' else status end as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn not in ('Y0TTEST') group by pn, status) union (select pn, fsns.line as tag, count(*) as qty FROM report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='Y' and enabled and status = 'inuse' and pn not in ('Y0TTEST') and sn.sn = fsns.sn group by pn, fsns.line, status) ) aa order by tag,pn 2023-03-27 07:09:55: pid 19002: LOG: DB node id: 1 backend pid: 2476619 statement: SELECT version() 2023-03-27 07:14:57: pid 19161: ERROR: unable to read data from DB node 1 2023-03-27 07:14:57: pid 19161: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:14:57: pid 19161: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:14:57: pid 19161: LOG: statement: DISCARD ALL 2023-03-27 07:14:57: pid 7535: LOG: child process with pid: 19083 exits with status 256 2023-03-27 07:14:57: pid 19161: LOG: DB node id: 1 backend pid: 2461314 statement: SELECT version() 2023-03-27 07:14:57: pid 19161: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:14:57: pid 19161: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:14:57: pid 19161: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:14:57: pid 19161: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:14:57: pid 19161: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:14:57: pid 7535: LOG: fork a new child process with pid: 19182 2023-03-27 07:14:57: pid 18397: LOG: new connection received 2023-03-27 07:14:57: pid 18397: DETAIL: connecting host=10.0.0.20 port=47412 2023-03-27 07:14:57: pid 18397: LOG: using clear text authentication with frontend 2023-03-27 07:14:57: pid 18397: DETAIL: backend will still use md5 auth 2023-03-27 07:14:57: pid 18397: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:14:57: pid 18397: LOG: statement: select 'W' || date_part('week',now()) 2023-03-27 07:14:57: pid 18397: LOG: DB node id: 1 backend pid: 2477163 statement: SELECT version() 2023-03-27 07:19:58: pid 18650: ERROR: unable to read data from DB node 1 2023-03-27 07:19:58: pid 18650: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:19:58: pid 18650: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:19:58: pid 7535: LOG: child process with pid: 19161 exits with status 256 2023-03-27 07:19:58: pid 18650: LOG: statement: DISCARD ALL 2023-03-27 07:19:58: pid 18650: LOG: DB node id: 1 backend pid: 2461705 statement: SELECT version() 2023-03-27 07:19:58: pid 18650: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:19:58: pid 18650: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:19:58: pid 18650: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:19:58: pid 18650: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:19:58: pid 18650: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:19:58: pid 7535: LOG: fork a new child process with pid: 19183 2023-03-27 07:19:58: pid 17619: LOG: new connection received 2023-03-27 07:19:58: pid 17619: DETAIL: connecting host=10.0.0.20 port=55958 2023-03-27 07:19:58: pid 17619: LOG: using clear text authentication with frontend 2023-03-27 07:19:58: pid 17619: DETAIL: backend will still use md5 auth 2023-03-27 07:19:58: pid 17619: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:19:58: pid 17619: LOG: statement: select --'2023-03-26T22:32:12.411Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 07:19:58: pid 17619: LOG: DB node id: 1 backend pid: 2477542 statement: SELECT version() 2023-03-27 07:24:59: pid 18263: ERROR: unable to read data from DB node 1 2023-03-27 07:24:59: pid 18263: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:24:59: pid 18263: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:24:59: pid 7535: LOG: child process with pid: 18650 exits with status 256 2023-03-27 07:24:59: pid 18263: LOG: statement: DISCARD ALL 2023-03-27 07:24:59: pid 18263: LOG: DB node id: 1 backend pid: 2462117 statement: SELECT version() 2023-03-27 07:24:59: pid 18263: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:24:59: pid 18263: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:24:59: pid 18263: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:24:59: pid 7535: LOG: fork a new child process with pid: 19184 2023-03-27 07:24:59: pid 18263: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:24:59: pid 18263: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:24:59: pid 17721: LOG: new connection received 2023-03-27 07:24:59: pid 17721: DETAIL: connecting host=10.0.0.20 port=33968 2023-03-27 07:24:59: pid 17721: LOG: using clear text authentication with frontend 2023-03-27 07:24:59: pid 17721: DETAIL: backend will still use md5 auth 2023-03-27 07:24:59: pid 17721: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:24:59: pid 17721: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 07:24:59: pid 17721: LOG: DB node id: 1 backend pid: 2478084 statement: SELECT version() 2023-03-27 07:30:00: pid 16869: ERROR: unable to read data from DB node 1 2023-03-27 07:30:00: pid 16869: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:30:00: pid 16869: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:30:00: pid 7535: LOG: child process with pid: 18263 exits with status 256 2023-03-27 07:30:00: pid 16869: LOG: statement: DISCARD ALL 2023-03-27 07:30:00: pid 16869: LOG: DB node id: 1 backend pid: 2462493 statement: SELECT version() 2023-03-27 07:30:00: pid 16869: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:30:00: pid 16869: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:30:00: pid 16869: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:30:00: pid 7535: LOG: fork a new child process with pid: 19185 2023-03-27 07:30:00: pid 16869: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:30:00: pid 16869: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:30:00: pid 19052: LOG: new connection received 2023-03-27 07:30:00: pid 19052: DETAIL: connecting host=10.0.0.20 port=41156 2023-03-27 07:30:00: pid 19052: LOG: using clear text authentication with frontend 2023-03-27 07:30:00: pid 19052: DETAIL: backend will still use md5 auth 2023-03-27 07:30:00: pid 19052: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:30:00: pid 19052: LOG: statement: select --'2023-03-26T22:32:12.416Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 07:30:00: pid 19052: LOG: DB node id: 1 backend pid: 2478624 statement: SELECT version() 2023-03-27 07:35:02: pid 7535: LOG: child process with pid: 16869 exits with status 256 2023-03-27 07:35:02: pid 19121: ERROR: unable to read data from DB node 1 2023-03-27 07:35:02: pid 19121: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:35:02: pid 19121: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:35:02: pid 19121: LOG: statement: DISCARD ALL 2023-03-27 07:35:02: pid 19121: LOG: DB node id: 1 backend pid: 2462890 statement: SELECT version() 2023-03-27 07:35:02: pid 19121: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:35:02: pid 19121: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:35:02: pid 19121: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:35:02: pid 7535: LOG: fork a new child process with pid: 19186 2023-03-27 07:35:02: pid 19121: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:35:02: pid 19121: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:35:02: pid 18761: LOG: new connection received 2023-03-27 07:35:02: pid 18761: DETAIL: connecting host=10.0.0.20 port=46630 2023-03-27 07:35:02: pid 18761: LOG: using clear text authentication with frontend 2023-03-27 07:35:02: pid 18761: DETAIL: backend will still use md5 auth 2023-03-27 07:35:02: pid 18761: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:35:02: pid 18761: LOG: statement: select date_part('isoyear',now()) 2023-03-27 07:35:02: pid 18761: LOG: DB node id: 1 backend pid: 2479092 statement: SELECT version() 2023-03-27 07:40:03: pid 18180: ERROR: unable to read data from DB node 1 2023-03-27 07:40:03: pid 18180: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:40:03: pid 18180: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:40:03: pid 18180: LOG: statement: DISCARD ALL 2023-03-27 07:40:03: pid 7535: LOG: child process with pid: 19121 exits with status 256 2023-03-27 07:40:03: pid 18180: LOG: DB node id: 1 backend pid: 2463273 statement: SELECT version() 2023-03-27 07:40:03: pid 18180: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:40:03: pid 18180: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:40:03: pid 18180: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:40:03: pid 18180: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:40:03: pid 18180: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:40:03: pid 7535: LOG: fork a new child process with pid: 19187 2023-03-27 07:40:03: pid 19140: LOG: new connection received 2023-03-27 07:40:03: pid 19140: DETAIL: connecting host=10.0.0.20 port=41838 2023-03-27 07:40:03: pid 19140: LOG: using clear text authentication with frontend 2023-03-27 07:40:03: pid 19140: DETAIL: backend will still use md5 auth 2023-03-27 07:40:03: pid 19140: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:40:03: pid 19140: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select sum(tmpqty)/sum(useqty) from ((select count(distinct f.sn) as tmpqty, 0 as useqty from public.plt_fixture_fixtureclean m, report.v_fixture_sn f, fsns where m.plt_fixturecode = 'K' and m.plt_status = 'Closed' and m.plt_target = 'stock' and f.sn = fsns.sn and f.sn = m.plt_sn and f.status = 'maintain' and (fsns.line = '' or fsns.line is null)) union (select 0 as tmpqty, count(*) as useqty from report.v_fixture_sn sn where fixturetype='K' and enabled and status in ('inuse','maintain') )) aa 2023-03-27 07:40:03: pid 19140: LOG: DB node id: 1 backend pid: 2479547 statement: SELECT version() 2023-03-27 07:45:04: pid 19033: ERROR: unable to read data from DB node 1 2023-03-27 07:45:04: pid 19033: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:45:04: pid 19033: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:45:04: pid 7535: LOG: child process with pid: 18180 exits with status 256 2023-03-27 07:45:04: pid 19033: LOG: statement: DISCARD ALL 2023-03-27 07:45:04: pid 19033: LOG: DB node id: 1 backend pid: 2463670 statement: SELECT version() 2023-03-27 07:45:04: pid 19033: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:45:04: pid 19033: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:45:04: pid 19033: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:45:04: pid 19033: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:45:04: pid 19033: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:45:04: pid 7535: LOG: fork a new child process with pid: 19188 2023-03-27 07:45:04: pid 18071: LOG: new connection received 2023-03-27 07:45:04: pid 18071: DETAIL: connecting host=10.0.0.20 port=53250 2023-03-27 07:45:04: pid 18071: LOG: using clear text authentication with frontend 2023-03-27 07:45:04: pid 18071: DETAIL: backend will still use md5 auth 2023-03-27 07:45:04: pid 18071: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:45:04: pid 18071: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 07:45:04: pid 18071: LOG: DB node id: 1 backend pid: 2480484 statement: SELECT version() 2023-03-27 07:50:06: pid 18918: ERROR: unable to read data from DB node 1 2023-03-27 07:50:06: pid 18918: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:50:06: pid 18918: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:50:06: pid 18918: LOG: statement: DISCARD ALL 2023-03-27 07:50:06: pid 18918: LOG: DB node id: 1 backend pid: 2464061 statement: SELECT version() 2023-03-27 07:50:06: pid 7535: LOG: child process with pid: 19033 exits with status 256 2023-03-27 07:50:06: pid 18918: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:50:06: pid 18918: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:50:06: pid 18918: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:50:06: pid 18918: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:50:06: pid 18918: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:50:06: pid 7535: LOG: fork a new child process with pid: 19189 2023-03-27 07:50:06: pid 19081: LOG: new connection received 2023-03-27 07:50:06: pid 19081: DETAIL: connecting host=10.0.0.20 port=49158 2023-03-27 07:50:06: pid 19081: LOG: using clear text authentication with frontend 2023-03-27 07:50:06: pid 19081: DETAIL: backend will still use md5 auth 2023-03-27 07:50:06: pid 19081: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:50:06: pid 19081: LOG: statement: with fsns as (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') select count(*) from report.v_fixture_sn sn, fsns where fixturetype='K' and enabled and status = 'inuse' and sn.sn = fsns.sn and fsns.line <> '' and fsns.line is not null 2023-03-27 07:50:06: pid 19081: LOG: DB node id: 1 backend pid: 2481481 statement: SELECT version() 2023-03-27 07:55:07: pid 19120: ERROR: unable to read data from DB node 1 2023-03-27 07:55:07: pid 19120: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 07:55:07: pid 19120: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:55:07: pid 19120: LOG: statement: DISCARD ALL 2023-03-27 07:55:07: pid 19120: LOG: DB node id: 1 backend pid: 2471375 statement: SELECT version() 2023-03-27 07:55:07: pid 19120: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:55:07: pid 19120: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 07:55:07: pid 19120: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 07:55:07: pid 7535: LOG: child process with pid: 18918 exits with status 256 2023-03-27 07:55:07: pid 19120: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 07:55:07: pid 19120: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 07:55:07: pid 7535: LOG: fork a new child process with pid: 19190 2023-03-27 07:55:07: pid 19125: LOG: new connection received 2023-03-27 07:55:07: pid 19125: DETAIL: connecting host=10.0.0.20 port=36270 2023-03-27 07:55:07: pid 19125: LOG: using clear text authentication with frontend 2023-03-27 07:55:07: pid 19125: DETAIL: backend will still use md5 auth 2023-03-27 07:55:07: pid 19125: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 07:55:07: pid 19125: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 07:55:07: pid 19125: LOG: DB node id: 1 backend pid: 2482471 statement: SELECT version() 2023-03-27 08:00:08: pid 19090: ERROR: unable to read data from DB node 1 2023-03-27 08:00:08: pid 19090: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:00:08: pid 19090: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:00:08: pid 7535: LOG: child process with pid: 19120 exits with status 256 2023-03-27 08:00:08: pid 19090: LOG: statement: DISCARD ALL 2023-03-27 08:00:08: pid 19090: LOG: DB node id: 1 backend pid: 2471721 statement: SELECT version() 2023-03-27 08:00:08: pid 19090: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:00:08: pid 19090: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:00:08: pid 19090: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:00:08: pid 19090: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:00:08: pid 19090: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:00:08: pid 7535: LOG: fork a new child process with pid: 19191 2023-03-27 08:00:08: pid 16969: LOG: new connection received 2023-03-27 08:00:08: pid 16969: DETAIL: connecting host=10.0.0.20 port=50116 2023-03-27 08:00:08: pid 16969: LOG: using clear text authentication with frontend 2023-03-27 08:00:08: pid 16969: DETAIL: backend will still use md5 auth 2023-03-27 08:00:08: pid 16969: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:00:08: pid 16969: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 08:00:08: pid 16969: LOG: DB node id: 1 backend pid: 2483464 statement: SELECT version() 2023-03-27 08:05:09: pid 19100: ERROR: unable to read data from DB node 1 2023-03-27 08:05:09: pid 19100: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:05:09: pid 19100: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:05:09: pid 19100: LOG: statement: DISCARD ALL 2023-03-27 08:05:09: pid 7535: LOG: child process with pid: 19090 exits with status 256 2023-03-27 08:05:09: pid 19100: LOG: DB node id: 1 backend pid: 2472124 statement: SELECT version() 2023-03-27 08:05:09: pid 19100: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:05:09: pid 19100: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:05:09: pid 19100: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:05:09: pid 19100: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:05:09: pid 19100: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:05:09: pid 7535: LOG: fork a new child process with pid: 19192 2023-03-27 08:05:09: pid 19191: LOG: new connection received 2023-03-27 08:05:09: pid 19191: DETAIL: connecting host=10.0.0.20 port=38976 2023-03-27 08:05:09: pid 19191: LOG: using clear text authentication with frontend 2023-03-27 08:05:09: pid 19191: DETAIL: backend will still use md5 auth 2023-03-27 08:05:09: pid 19191: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:05:10: pid 19191: LOG: statement: select --'2023-03-26T22:13:43.141Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 08:05:10: pid 19191: LOG: DB node id: 1 backend pid: 2484561 statement: SELECT version() 2023-03-27 08:10:11: pid 7535: LOG: child process with pid: 19100 exits with status 256 2023-03-27 08:10:11: pid 18467: ERROR: unable to read data from DB node 1 2023-03-27 08:10:11: pid 18467: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:10:11: pid 18467: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:10:11: pid 18467: LOG: statement: DISCARD ALL 2023-03-27 08:10:11: pid 18467: LOG: DB node id: 1 backend pid: 2472595 statement: SELECT version() 2023-03-27 08:10:11: pid 7535: LOG: fork a new child process with pid: 19193 2023-03-27 08:10:11: pid 18467: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:10:11: pid 18467: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:10:11: pid 18467: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:10:11: pid 18467: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:10:11: pid 18467: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:10:11: pid 19046: LOG: new connection received 2023-03-27 08:10:11: pid 19046: DETAIL: connecting host=10.0.0.20 port=51150 2023-03-27 08:10:11: pid 19046: LOG: using clear text authentication with frontend 2023-03-27 08:10:11: pid 19046: DETAIL: backend will still use md5 auth 2023-03-27 08:10:11: pid 19046: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:10:11: pid 19046: LOG: statement: select --'2023-03-26T16:48:43.061Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 08:10:11: pid 19046: LOG: DB node id: 1 backend pid: 2486011 statement: SELECT version() 2023-03-27 08:15:12: pid 19131: ERROR: unable to read data from DB node 1 2023-03-27 08:15:12: pid 19131: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:15:12: pid 19131: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:15:12: pid 7535: LOG: child process with pid: 18467 exits with status 256 2023-03-27 08:15:12: pid 19131: LOG: statement: DISCARD ALL 2023-03-27 08:15:12: pid 19131: LOG: DB node id: 1 backend pid: 2473015 statement: SELECT version() 2023-03-27 08:15:12: pid 19131: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:15:12: pid 19131: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:15:12: pid 19131: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:15:12: pid 19131: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:15:12: pid 19131: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:15:12: pid 7535: LOG: fork a new child process with pid: 19194 2023-03-27 08:15:12: pid 19175: LOG: new connection received 2023-03-27 08:15:12: pid 19175: DETAIL: connecting host=10.0.0.20 port=49260 2023-03-27 08:15:12: pid 19175: LOG: using clear text authentication with frontend 2023-03-27 08:15:12: pid 19175: DETAIL: backend will still use md5 auth 2023-03-27 08:15:12: pid 19175: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:15:12: pid 19175: LOG: statement: select --'2023-03-26T21:53:43.092Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 08:15:12: pid 19175: LOG: DB node id: 1 backend pid: 2488245 statement: SELECT version() 2023-03-27 08:20:13: pid 19166: ERROR: unable to read data from DB node 1 2023-03-27 08:20:13: pid 19166: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:20:13: pid 19166: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:20:13: pid 7535: LOG: child process with pid: 19131 exits with status 256 2023-03-27 08:20:13: pid 19166: LOG: statement: DISCARD ALL 2023-03-27 08:20:13: pid 19166: LOG: DB node id: 1 backend pid: 2473418 statement: SELECT version() 2023-03-27 08:20:13: pid 19166: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:20:13: pid 19166: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:20:13: pid 19166: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:20:13: pid 19166: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:20:13: pid 19166: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:20:13: pid 7535: LOG: fork a new child process with pid: 19195 2023-03-27 08:20:13: pid 18135: LOG: new connection received 2023-03-27 08:20:13: pid 18135: DETAIL: connecting host=10.0.0.20 port=48252 2023-03-27 08:20:13: pid 18135: LOG: using clear text authentication with frontend 2023-03-27 08:20:13: pid 18135: DETAIL: backend will still use md5 auth 2023-03-27 08:20:13: pid 18135: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:20:13: pid 18135: LOG: statement: select aa.bu, bb.waitrepair,bb.repairing,bb.waitscrap, COALESCE(bb.waitrepair,0)+ COALESCE(bb.repairing,0)+COALESCE(bb.waitscrap,0) as total, gg.lt14,gg.gt14,gg.slowday from (select distinct value as bu from report.t_data_map where category = 'Customer2BU') aa left join -- 治具不良,待维修 (select c.value as bu, count(case a.status in ('needRepair') when true then a.* end) as waitrepair, count(case a.status in ('verifing','repairing','repaired') when true then a.* end) as repairing, count(case a.status in ('waitscrap') when true then a.* end) as waitscrap from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('needRepair','verifing','repairing','repaired','waitscrap') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value) bb on aa.bu = bb.bu left join -- 维修小于14天 (select e.bu, sum(case slowday < 14 when true then qty else 0 end ) as lt14, sum(case slowday >= 14 when true then qty else 0 end) as gt14, max(e.slowday) as slowday from ((select c.value as bu, count(*) as qty, date_part('days', now() - min(d.maxcdt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c, (select sn, max(cdt) as maxcdt from report.v_spare_sn_log where sn in (select sn from report.v_spare_sn where status in ('verifing','repairing','repaired') and left(pn,4) in ('1395','1597')) and action = '维修刷入' group by sn) d where a.status in ('verifing','repairing','repaired') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' and a.sn = d.sn group by c.value) union (select c.value as bu, count(*) as qty, date_part('days', now() - min(a.udt)) as slowday from report.v_spare_sn_lite a, report.v_base_model b, report.t_data_map c where a.status in ('waitscrap','needRepair') and left(a.pn,4) in ('1395','1597') and a.pn = b.model and b.customer = c.key and c.category = 'Customer2BU' and b.board_type = 'SC' group by c.value)) e group by e.bu) gg on aa.bu = gg.bu where slowday is not null 2023-03-27 08:20:13: pid 18135: LOG: DB node id: 1 backend pid: 2490587 statement: SELECT version() 2023-03-27 08:25:15: pid 18387: ERROR: unable to read data from DB node 1 2023-03-27 08:25:15: pid 18387: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:25:15: pid 18387: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:25:15: pid 18387: LOG: statement: DISCARD ALL 2023-03-27 08:25:15: pid 18387: LOG: DB node id: 1 backend pid: 2473827 statement: SELECT version() 2023-03-27 08:25:15: pid 7535: LOG: child process with pid: 19166 exits with status 256 2023-03-27 08:25:15: pid 18387: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:25:15: pid 18387: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:25:15: pid 18387: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:25:15: pid 18387: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:25:15: pid 18387: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:25:15: pid 7535: LOG: fork a new child process with pid: 19196 2023-03-27 08:25:15: pid 19194: LOG: new connection received 2023-03-27 08:25:15: pid 19194: DETAIL: connecting host=10.0.0.20 port=58008 2023-03-27 08:25:15: pid 19194: LOG: using clear text authentication with frontend 2023-03-27 08:25:15: pid 19194: DETAIL: backend will still use md5 auth 2023-03-27 08:25:15: pid 19194: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:25:15: pid 19194: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 08:25:15: pid 19194: LOG: DB node id: 1 backend pid: 2494512 statement: SELECT version() 2023-03-27 08:30:16: pid 19167: ERROR: unable to read data from DB node 1 2023-03-27 08:30:16: pid 19167: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:30:16: pid 19167: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:30:16: pid 7535: LOG: child process with pid: 18387 exits with status 256 2023-03-27 08:30:16: pid 19167: LOG: statement: DISCARD ALL 2023-03-27 08:30:16: pid 19167: LOG: DB node id: 1 backend pid: 2474191 statement: SELECT version() 2023-03-27 08:30:16: pid 19167: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:30:16: pid 19167: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:30:16: pid 19167: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:30:16: pid 7535: LOG: fork a new child process with pid: 19197 2023-03-27 08:30:16: pid 19167: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:30:16: pid 19167: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:30:16: pid 19178: LOG: new connection received 2023-03-27 08:30:16: pid 19178: DETAIL: connecting host=10.0.0.20 port=42990 2023-03-27 08:30:16: pid 19178: LOG: using clear text authentication with frontend 2023-03-27 08:30:16: pid 19178: DETAIL: backend will still use md5 auth 2023-03-27 08:30:16: pid 19178: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:30:16: pid 19178: LOG: statement: select right(pn,6) as pn, case status when 'inuse' then '在线' when 'maintain' then '清洗室' when 'instock' then '在库' when 'transfer' then '移转' else status end as status, count(*) as qty from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' group by pn,status order by pn,status 2023-03-27 08:30:16: pid 19178: LOG: DB node id: 1 backend pid: 2498545 statement: SELECT version() 2023-03-27 08:35:17: pid 19172: ERROR: unable to read data from DB node 1 2023-03-27 08:35:17: pid 19172: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:35:17: pid 19172: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:35:17: pid 19172: LOG: statement: DISCARD ALL 2023-03-27 08:35:17: pid 19172: LOG: DB node id: 1 backend pid: 2474606 statement: SELECT version() 2023-03-27 08:35:17: pid 7535: LOG: child process with pid: 19167 exits with status 256 2023-03-27 08:35:17: pid 19172: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:35:17: pid 19172: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:35:17: pid 19172: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:35:17: pid 19172: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:35:17: pid 19172: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:35:17: pid 7535: LOG: fork a new child process with pid: 19198 2023-03-27 08:35:17: pid 14178: LOG: new connection received 2023-03-27 08:35:17: pid 14178: DETAIL: connecting host=10.0.0.20 port=41308 2023-03-27 08:35:17: pid 14178: LOG: using clear text authentication with frontend 2023-03-27 08:35:17: pid 14178: DETAIL: backend will still use md5 auth 2023-03-27 08:35:17: pid 14178: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:35:17: pid 14178: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 08:35:17: pid 14178: LOG: DB node id: 1 backend pid: 2503601 statement: SELECT version() 2023-03-27 08:40:19: pid 19179: ERROR: unable to read data from DB node 1 2023-03-27 08:40:19: pid 19179: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:40:19: pid 19179: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:40:19: pid 19179: LOG: statement: DISCARD ALL 2023-03-27 08:40:19: pid 19179: LOG: DB node id: 1 backend pid: 2475035 statement: SELECT version() 2023-03-27 08:40:19: pid 19179: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:40:19: pid 19179: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:40:19: pid 19179: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:40:19: pid 7535: LOG: child process with pid: 19172 exits with status 256 2023-03-27 08:40:19: pid 19179: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:40:19: pid 19179: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:40:19: pid 7535: LOG: fork a new child process with pid: 19199 2023-03-27 08:40:19: pid 18495: LOG: new connection received 2023-03-27 08:40:19: pid 18495: DETAIL: connecting host=10.0.0.20 port=57814 2023-03-27 08:40:19: pid 18495: LOG: using clear text authentication with frontend 2023-03-27 08:40:19: pid 18495: DETAIL: backend will still use md5 auth 2023-03-27 08:40:19: pid 18495: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:40:19: pid 18495: LOG: statement: select --'2023-03-26T23:55:33.539Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 08:40:19: pid 18495: LOG: DB node id: 1 backend pid: 2508738 statement: SELECT version() 2023-03-27 08:45:20: pid 18269: ERROR: unable to read data from DB node 1 2023-03-27 08:45:20: pid 18269: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:45:20: pid 18269: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:45:20: pid 18269: LOG: statement: DISCARD ALL 2023-03-27 08:45:20: pid 18269: LOG: DB node id: 1 backend pid: 2476154 statement: SELECT version() 2023-03-27 08:45:20: pid 18269: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:45:20: pid 18269: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:45:20: pid 18269: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:45:20: pid 7535: LOG: child process with pid: 19179 exits with status 256 2023-03-27 08:45:20: pid 18269: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:45:20: pid 18269: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:45:20: pid 7535: LOG: fork a new child process with pid: 19200 2023-03-27 08:45:20: pid 18651: LOG: new connection received 2023-03-27 08:45:20: pid 18651: DETAIL: connecting host=10.0.0.20 port=54502 2023-03-27 08:45:20: pid 18651: LOG: using clear text authentication with frontend 2023-03-27 08:45:20: pid 18651: DETAIL: backend will still use md5 auth 2023-03-27 08:45:20: pid 18651: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:45:20: pid 18651: LOG: statement: select --'2023-03-26T20:03:42.761Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 08:45:20: pid 18651: LOG: DB node id: 1 backend pid: 2513899 statement: SELECT version() 2023-03-27 08:50:21: pid 19002: ERROR: unable to read data from DB node 1 2023-03-27 08:50:21: pid 19002: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:50:21: pid 19002: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:50:21: pid 7535: LOG: child process with pid: 18269 exits with status 256 2023-03-27 08:50:21: pid 19002: LOG: statement: DISCARD ALL 2023-03-27 08:50:21: pid 19002: LOG: DB node id: 1 backend pid: 2476619 statement: SELECT version() 2023-03-27 08:50:21: pid 19002: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:50:21: pid 19002: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:50:21: pid 19002: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:50:21: pid 19002: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:50:21: pid 19002: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:50:21: pid 7535: LOG: fork a new child process with pid: 19201 2023-03-27 08:50:21: pid 19180: LOG: new connection received 2023-03-27 08:50:21: pid 19180: DETAIL: connecting host=10.0.0.20 port=48122 2023-03-27 08:50:21: pid 19180: LOG: using clear text authentication with frontend 2023-03-27 08:50:21: pid 19180: DETAIL: backend will still use md5 auth 2023-03-27 08:50:21: pid 19180: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:50:21: pid 19180: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 08:50:21: pid 19180: LOG: DB node id: 1 backend pid: 2518988 statement: SELECT version() 2023-03-27 08:55:22: pid 18397: ERROR: unable to read data from DB node 1 2023-03-27 08:55:22: pid 18397: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 08:55:22: pid 18397: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:55:22: pid 18397: LOG: statement: DISCARD ALL 2023-03-27 08:55:22: pid 7535: LOG: child process with pid: 19002 exits with status 256 2023-03-27 08:55:22: pid 18397: LOG: DB node id: 1 backend pid: 2477163 statement: SELECT version() 2023-03-27 08:55:22: pid 18397: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:55:22: pid 18397: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 08:55:22: pid 18397: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 08:55:22: pid 18397: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 08:55:22: pid 18397: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 08:55:22: pid 7535: LOG: fork a new child process with pid: 19202 2023-03-27 08:55:22: pid 19139: LOG: new connection received 2023-03-27 08:55:22: pid 19139: DETAIL: connecting host=10.0.0.20 port=36572 2023-03-27 08:55:22: pid 19139: LOG: using clear text authentication with frontend 2023-03-27 08:55:22: pid 19139: DETAIL: backend will still use md5 auth 2023-03-27 08:55:22: pid 19139: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 08:55:22: pid 19139: LOG: statement: select right(pn,3) as "设备类型",pn as "刮刀型号", tag, qty from ((select pn, '1总数' as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and pn not in ('Y0TTEST') and status <> 'scrap' group by pn) union (select pn, case status when 'inuse' then '3使用' when 'instock' then '2在库' when 'maintain' then '4清洗' when 'transfer' then '5移转' else status end as tag, count(*) as qty FROM report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn not in ('Y0TTEST') group by pn, status) union (select pn, fsns.line as tag, count(*) as qty FROM report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='Y' and enabled and status = 'inuse' and pn not in ('Y0TTEST') and sn.sn = fsns.sn group by pn, fsns.line, status) ) aa order by tag,pn 2023-03-27 08:55:22: pid 19139: LOG: DB node id: 1 backend pid: 2524205 statement: SELECT version() 2023-03-27 09:00:24: pid 17619: ERROR: unable to read data from DB node 1 2023-03-27 09:00:24: pid 17619: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:00:24: pid 17619: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:00:24: pid 7535: LOG: child process with pid: 18397 exits with status 256 2023-03-27 09:00:24: pid 17619: LOG: statement: DISCARD ALL 2023-03-27 09:00:24: pid 17619: LOG: DB node id: 1 backend pid: 2477542 statement: SELECT version() 2023-03-27 09:00:24: pid 17619: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:00:24: pid 17619: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:00:24: pid 17619: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:00:24: pid 7535: LOG: fork a new child process with pid: 19203 2023-03-27 09:00:24: pid 17619: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:00:24: pid 17619: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:00:24: pid 19187: LOG: new connection received 2023-03-27 09:00:24: pid 19187: DETAIL: connecting host=10.0.0.20 port=51066 2023-03-27 09:00:24: pid 19187: LOG: using clear text authentication with frontend 2023-03-27 09:00:24: pid 19187: DETAIL: backend will still use md5 auth 2023-03-27 09:00:24: pid 19187: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:00:24: pid 19187: LOG: statement: select --'2023-03-26T22:38:43.184Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 09:00:24: pid 19187: LOG: DB node id: 1 backend pid: 2529422 statement: SELECT version() 2023-03-27 09:05:25: pid 17721: ERROR: unable to read data from DB node 1 2023-03-27 09:05:25: pid 17721: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:05:25: pid 17721: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:05:25: pid 7535: LOG: child process with pid: 17619 exits with status 256 2023-03-27 09:05:25: pid 17721: LOG: statement: DISCARD ALL 2023-03-27 09:05:25: pid 17721: LOG: DB node id: 1 backend pid: 2478084 statement: SELECT version() 2023-03-27 09:05:25: pid 17721: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:05:25: pid 17721: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:05:25: pid 17721: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:05:25: pid 17721: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:05:25: pid 17721: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:05:25: pid 7535: LOG: fork a new child process with pid: 19204 2023-03-27 09:05:25: pid 19047: LOG: new connection received 2023-03-27 09:05:25: pid 19047: DETAIL: connecting host=10.0.0.20 port=41388 2023-03-27 09:05:25: pid 19047: LOG: using clear text authentication with frontend 2023-03-27 09:05:25: pid 19047: DETAIL: backend will still use md5 auth 2023-03-27 09:05:25: pid 19047: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:05:25: pid 19047: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 09:05:25: pid 19047: LOG: DB node id: 1 backend pid: 2533056 statement: SELECT version() 2023-03-27 09:10:26: pid 19052: ERROR: unable to read data from DB node 1 2023-03-27 09:10:26: pid 19052: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:10:26: pid 19052: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:10:26: pid 7535: LOG: child process with pid: 17721 exits with status 256 2023-03-27 09:10:26: pid 19052: LOG: statement: DISCARD ALL 2023-03-27 09:10:26: pid 19052: LOG: DB node id: 1 backend pid: 2478624 statement: SELECT version() 2023-03-27 09:10:26: pid 19052: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:10:26: pid 19052: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:10:26: pid 19052: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:10:26: pid 19052: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:10:26: pid 19052: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:10:26: pid 7535: LOG: fork a new child process with pid: 19205 2023-03-27 09:10:26: pid 18542: LOG: new connection received 2023-03-27 09:10:26: pid 18542: DETAIL: connecting host=10.0.0.20 port=47512 2023-03-27 09:10:26: pid 18542: LOG: using clear text authentication with frontend 2023-03-27 09:10:26: pid 18542: DETAIL: backend will still use md5 auth 2023-03-27 09:10:26: pid 18542: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:10:26: pid 18542: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='K' and enabled and status = 'maintain' 2023-03-27 09:10:26: pid 18542: LOG: DB node id: 1 backend pid: 2537139 statement: SELECT version() 2023-03-27 09:15:28: pid 18761: ERROR: unable to read data from DB node 1 2023-03-27 09:15:28: pid 18761: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:15:28: pid 18761: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:15:28: pid 18761: LOG: statement: DISCARD ALL 2023-03-27 09:15:28: pid 18761: LOG: DB node id: 1 backend pid: 2479092 statement: SELECT version() 2023-03-27 09:15:28: pid 18761: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:15:28: pid 18761: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:15:28: pid 18761: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:15:28: pid 18761: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:15:28: pid 18761: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:15:28: pid 7535: LOG: child process with pid: 19052 exits with status 256 2023-03-27 09:15:28: pid 7535: LOG: fork a new child process with pid: 19206 2023-03-27 09:15:28: pid 18067: LOG: new connection received 2023-03-27 09:15:28: pid 18067: DETAIL: connecting host=10.0.0.20 port=58112 2023-03-27 09:15:28: pid 18067: LOG: using clear text authentication with frontend 2023-03-27 09:15:28: pid 18067: DETAIL: backend will still use md5 auth 2023-03-27 09:15:28: pid 18067: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:15:28: pid 18067: LOG: statement: with temp_fixure as (select b.value as bu, a.model0, a.pn, a.sn, a.fixturever, case when a.side=1 then 'A' else 'B' end side, a.board_type, a.pcbcolor, a.cdt, a.usagecount, case when a.customer='KST' then 60 else 100 end usage_limit, a.udt, a.charger, a.location, d.customer, d.family, case when f.value='MP' then '量产' when f.value='NPI' then '试产' else f.value end stage from report.v_fixture_sn_z a left join report.t_data_map b on a.customer=b."key" left join report.v_base_model d on a.model0=d.model left join report.t_data_map f on d.stage_type=f."key" where a.status <> 'scrap' ) select b.bu as "BU", b.customer as 客户, b.family as 产品, b.model0 as 机型, b.pn as 料号, b.sn as 编号, b.fixturever as 版本, b.stage as 阶段, b.side as 板面, b.board_type as 类型, b.pcbcolor as 颜色, b.cdt as 入库时间, b.usagecount as 用量, b.udt as 使用时间, b.usage_limit as 最大用量, b.location as 库位, b.charger as 负责人, b.usage_limit - b.usagecount as 差值 from temp_fixure b where substring(b.model0 from 1 for 10) in (select distinct(substring(a.model from 1 for 10)) from report.f_dps_get_plan_simple_pca a where a.shiftdate >= date_trunc('day', now()) --a.shiftdate < now() + interval '7 day' ) order by 差值 asc; 2023-03-27 09:15:28: pid 18067: LOG: DB node id: 1 backend pid: 2541701 statement: SELECT version() 2023-03-27 09:20:29: pid 19140: ERROR: unable to read data from DB node 1 2023-03-27 09:20:29: pid 19140: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:20:29: pid 19140: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:20:29: pid 7535: LOG: child process with pid: 18761 exits with status 256 2023-03-27 09:20:29: pid 19140: LOG: statement: DISCARD ALL 2023-03-27 09:20:29: pid 19140: LOG: DB node id: 1 backend pid: 2479547 statement: SELECT version() 2023-03-27 09:20:29: pid 19140: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:20:29: pid 19140: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:20:29: pid 19140: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:20:29: pid 7535: LOG: fork a new child process with pid: 19207 2023-03-27 09:20:29: pid 19140: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:20:29: pid 19140: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:20:29: pid 19134: LOG: new connection received 2023-03-27 09:20:29: pid 19134: DETAIL: connecting host=10.0.0.20 port=38774 2023-03-27 09:20:29: pid 19134: LOG: using clear text authentication with frontend 2023-03-27 09:20:29: pid 19134: DETAIL: backend will still use md5 auth 2023-03-27 09:20:29: pid 19134: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:20:29: pid 19134: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and pn <> 'Y0TTEST' 2023-03-27 09:20:29: pid 19134: LOG: DB node id: 1 backend pid: 2545352 statement: SELECT version() 2023-03-27 09:25:30: pid 18071: ERROR: unable to read data from DB node 1 2023-03-27 09:25:30: pid 18071: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:25:30: pid 18071: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:25:30: pid 18071: LOG: statement: DISCARD ALL 2023-03-27 09:25:30: pid 7535: LOG: child process with pid: 19140 exits with status 256 2023-03-27 09:25:30: pid 18071: LOG: DB node id: 1 backend pid: 2480484 statement: SELECT version() 2023-03-27 09:25:30: pid 18071: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:25:30: pid 18071: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:25:30: pid 18071: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:25:30: pid 18071: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:25:30: pid 18071: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:25:30: pid 7535: LOG: fork a new child process with pid: 19208 2023-03-27 09:25:30: pid 18876: LOG: new connection received 2023-03-27 09:25:30: pid 18876: DETAIL: connecting host=10.0.0.20 port=44918 2023-03-27 09:25:30: pid 18876: LOG: using clear text authentication with frontend 2023-03-27 09:25:30: pid 18876: DETAIL: backend will still use md5 auth 2023-03-27 09:25:30: pid 18876: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:25:30: pid 18876: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'inuse' 2023-03-27 09:25:30: pid 18876: LOG: DB node id: 1 backend pid: 2548862 statement: SELECT version() 2023-03-27 09:30:31: pid 19081: ERROR: unable to read data from DB node 1 2023-03-27 09:30:31: pid 19081: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:30:31: pid 19081: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:30:31: pid 7535: LOG: child process with pid: 18071 exits with status 256 2023-03-27 09:30:31: pid 19081: LOG: statement: DISCARD ALL 2023-03-27 09:30:31: pid 19081: LOG: DB node id: 1 backend pid: 2481481 statement: SELECT version() 2023-03-27 09:30:31: pid 19081: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:30:31: pid 19081: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:30:31: pid 19081: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:30:31: pid 19081: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:30:31: pid 19081: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:30:31: pid 7535: LOG: fork a new child process with pid: 19209 2023-03-27 09:30:31: pid 19171: LOG: new connection received 2023-03-27 09:30:31: pid 19171: DETAIL: connecting host=10.0.0.20 port=52084 2023-03-27 09:30:31: pid 19171: LOG: using clear text authentication with frontend 2023-03-27 09:30:31: pid 19171: DETAIL: backend will still use md5 auth 2023-03-27 09:30:31: pid 19171: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:30:31: pid 19171: LOG: statement: select --'2023-03-26T16:08:41.768Z' at time zone 'Asia/Shanghai' as time, sc_model, bu || ',' || sc_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 09:30:31: pid 19171: LOG: DB node id: 1 backend pid: 2552466 statement: SELECT version() 2023-03-27 09:35:33: pid 19125: ERROR: unable to read data from DB node 1 2023-03-27 09:35:33: pid 19125: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:35:33: pid 19125: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:35:33: pid 19125: LOG: statement: DISCARD ALL 2023-03-27 09:35:33: pid 7535: LOG: child process with pid: 19081 exits with status 256 2023-03-27 09:35:33: pid 19125: LOG: DB node id: 1 backend pid: 2482471 statement: SELECT version() 2023-03-27 09:35:33: pid 19125: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:35:33: pid 19125: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:35:33: pid 19125: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:35:33: pid 19125: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:35:33: pid 19125: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:35:33: pid 7535: LOG: fork a new child process with pid: 19210 2023-03-27 09:35:33: pid 18912: LOG: new connection received 2023-03-27 09:35:33: pid 18912: DETAIL: connecting host=10.0.0.20 port=51010 2023-03-27 09:35:33: pid 18912: LOG: using clear text authentication with frontend 2023-03-27 09:35:33: pid 18912: DETAIL: backend will still use md5 auth 2023-03-27 09:35:33: pid 18912: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:35:33: pid 18912: LOG: statement: select --'2023-03-26T23:33:43.394Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 09:35:33: pid 18912: LOG: DB node id: 1 backend pid: 2556747 statement: SELECT version() 2023-03-27 09:40:34: pid 16969: ERROR: unable to read data from DB node 1 2023-03-27 09:40:34: pid 16969: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:40:34: pid 16969: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:40:34: pid 7535: LOG: child process with pid: 19125 exits with status 256 2023-03-27 09:40:34: pid 16969: LOG: statement: DISCARD ALL 2023-03-27 09:40:34: pid 16969: LOG: DB node id: 1 backend pid: 2483464 statement: SELECT version() 2023-03-27 09:40:34: pid 16969: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:40:34: pid 16969: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:40:34: pid 16969: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:40:34: pid 16969: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:40:34: pid 16969: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:40:34: pid 7535: LOG: fork a new child process with pid: 19211 2023-03-27 09:40:34: pid 18569: LOG: new connection received 2023-03-27 09:40:34: pid 18569: DETAIL: connecting host=10.0.0.20 port=38654 2023-03-27 09:40:34: pid 18569: LOG: using clear text authentication with frontend 2023-03-27 09:40:34: pid 18569: DETAIL: backend will still use md5 auth 2023-03-27 09:40:34: pid 18569: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:40:34: pid 18569: LOG: statement: select 'All' union all select distinct department from report.mv_spare_pn 2023-03-27 09:40:34: pid 18569: LOG: DB node id: 1 backend pid: 2561202 statement: SELECT version() 2023-03-27 09:45:35: pid 7535: LOG: child process with pid: 16969 exits with status 256 2023-03-27 09:45:35: pid 19191: ERROR: unable to read data from DB node 1 2023-03-27 09:45:35: pid 19191: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:45:35: pid 19191: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:45:35: pid 19191: LOG: statement: DISCARD ALL 2023-03-27 09:45:35: pid 19191: LOG: DB node id: 1 backend pid: 2484561 statement: SELECT version() 2023-03-27 09:45:35: pid 7535: LOG: fork a new child process with pid: 19212 2023-03-27 09:45:35: pid 19191: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:45:35: pid 19191: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:45:35: pid 19191: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:45:35: pid 19191: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:45:35: pid 19191: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:45:35: pid 19169: LOG: new connection received 2023-03-27 09:45:35: pid 19169: DETAIL: connecting host=10.0.0.20 port=55924 2023-03-27 09:45:35: pid 19169: LOG: using clear text authentication with frontend 2023-03-27 09:45:35: pid 19169: DETAIL: backend will still use md5 auth 2023-03-27 09:45:35: pid 19169: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:45:35: pid 19169: LOG: statement: select count(*) from report.v_fixture_sn where fixturetype='Y' and enabled and status <> 'scrap' and status = 'maintain' 2023-03-27 09:45:35: pid 19169: LOG: DB node id: 1 backend pid: 2567322 statement: SELECT version() 2023-03-27 09:50:37: pid 19046: ERROR: unable to read data from DB node 1 2023-03-27 09:50:37: pid 19046: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:50:37: pid 19046: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:50:37: pid 19046: LOG: statement: DISCARD ALL 2023-03-27 09:50:37: pid 7535: LOG: child process with pid: 19191 exits with status 256 2023-03-27 09:50:37: pid 19046: LOG: DB node id: 1 backend pid: 2486011 statement: SELECT version() 2023-03-27 09:50:37: pid 19046: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:50:37: pid 19046: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:50:37: pid 19046: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:50:37: pid 19046: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:50:37: pid 19046: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:50:37: pid 7535: LOG: fork a new child process with pid: 19213 2023-03-27 09:50:37: pid 19189: LOG: new connection received 2023-03-27 09:50:37: pid 19189: DETAIL: connecting host=10.0.0.20 port=54678 2023-03-27 09:50:37: pid 19189: LOG: using clear text authentication with frontend 2023-03-27 09:50:37: pid 19189: DETAIL: backend will still use md5 auth 2023-03-27 09:50:37: pid 19189: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:50:37: pid 19189: LOG: statement: select case fsns.line when '' then '回库' else fsns.line end as line, case status when 'inuse' then '在线' when 'maintain' then '清洗室' else status end as status, count(*) as qty from report.v_fixture_sn sn, (select plt_sn as sn, plt_line as line, plt_usetime as last_stockout from public.plt_fixture_fixtureactionstatistic where plt_oid in (select max(plt_oid) as oid from public.plt_fixture_fixtureactionstatistic group by plt_sn) and plt_action = 'stockout') fsns where fixturetype='K' and enabled and status in ('inuse','maintain') and sn.sn = fsns.sn and fsns.line is not null and fsns.line not in ('','stock') group by fsns.line,status order by fsns.line,status desc 2023-03-27 09:50:37: pid 19189: LOG: DB node id: 1 backend pid: 2573501 statement: SELECT version() 2023-03-27 09:55:38: pid 19175: ERROR: unable to read data from DB node 1 2023-03-27 09:55:38: pid 19175: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 09:55:38: pid 19175: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:55:38: pid 19175: LOG: statement: DISCARD ALL 2023-03-27 09:55:38: pid 7535: LOG: child process with pid: 19046 exits with status 256 2023-03-27 09:55:38: pid 19175: LOG: DB node id: 1 backend pid: 2488245 statement: SELECT version() 2023-03-27 09:55:38: pid 19175: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:55:38: pid 19175: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 09:55:38: pid 19175: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 09:55:38: pid 19175: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 09:55:38: pid 19175: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 09:55:38: pid 7535: LOG: fork a new child process with pid: 19214 2023-03-27 09:55:38: pid 18012: LOG: new connection received 2023-03-27 09:55:38: pid 18012: DETAIL: connecting host=10.0.0.20 port=54384 2023-03-27 09:55:38: pid 18012: LOG: using clear text authentication with frontend 2023-03-27 09:55:38: pid 18012: DETAIL: backend will still use md5 auth 2023-03-27 09:55:38: pid 18012: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 09:55:38: pid 18012: LOG: statement: select --'2023-03-26T17:08:42.115Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 09:55:38: pid 18012: LOG: DB node id: 1 backend pid: 2579484 statement: SELECT version() 2023-03-27 10:00:39: pid 18135: ERROR: unable to read data from DB node 1 2023-03-27 10:00:39: pid 18135: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 10:00:39: pid 18135: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:00:39: pid 18135: LOG: statement: DISCARD ALL 2023-03-27 10:00:39: pid 7535: LOG: child process with pid: 19175 exits with status 256 2023-03-27 10:00:39: pid 18135: LOG: DB node id: 1 backend pid: 2490587 statement: SELECT version() 2023-03-27 10:00:39: pid 18135: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:00:39: pid 18135: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 10:00:39: pid 18135: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:00:39: pid 18135: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:00:39: pid 18135: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 10:00:39: pid 7535: LOG: fork a new child process with pid: 19215 2023-03-27 10:00:39: pid 18591: LOG: new connection received 2023-03-27 10:00:39: pid 18591: DETAIL: connecting host=10.0.0.20 port=49124 2023-03-27 10:00:39: pid 18591: LOG: using clear text authentication with frontend 2023-03-27 10:00:39: pid 18591: DETAIL: backend will still use md5 auth 2023-03-27 10:00:39: pid 18591: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 10:00:39: pid 18591: LOG: statement: select --'2023-03-26T20:53:42.885Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 10:00:39: pid 18591: LOG: DB node id: 1 backend pid: 2586086 statement: SELECT version() 2023-03-27 10:05:40: pid 19194: ERROR: unable to read data from DB node 1 2023-03-27 10:05:40: pid 19194: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 10:05:40: pid 19194: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:05:40: pid 7535: LOG: child process with pid: 18135 exits with status 256 2023-03-27 10:05:40: pid 19194: LOG: statement: DISCARD ALL 2023-03-27 10:05:40: pid 19194: LOG: DB node id: 1 backend pid: 2494512 statement: SELECT version() 2023-03-27 10:05:40: pid 19194: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:05:40: pid 19194: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 10:05:40: pid 19194: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:05:40: pid 19194: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:05:40: pid 19194: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 10:05:40: pid 7535: LOG: fork a new child process with pid: 19216 2023-03-27 10:05:40: pid 19201: LOG: new connection received 2023-03-27 10:05:40: pid 19201: DETAIL: connecting host=10.0.0.20 port=37050 2023-03-27 10:05:40: pid 19201: LOG: using clear text authentication with frontend 2023-03-27 10:05:40: pid 19201: DETAIL: backend will still use md5 auth 2023-03-27 10:05:40: pid 19201: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 10:05:40: pid 19201: LOG: statement: select count(*) a_qty from ( select pn.fixturetype from report.mv_fixture_pn pn, report.v_fixture_type t, report.v_fixture_sn sn left join report.v_fixture_upgrading ug on sn.sn = ug.sn, (select left(right(m.model,7),5) maxmodel, max(coalesce(m.pcb_ver,'')) maxpcbver, m.family from report.v_base_model m,report.f_dps_get_plan_simple_pca d where m.model = d.model and d.shiftdate > date_trunc('day', now()) group by left(right(m.model,7),5), m.family) m, (select distinct model, shiftdate from report.f_dps_get_plan_simple_pca where shiftdate > date_trunc('day', now())) r where pn.fixturetype = t.fixturetype and pn.subtype = t.subtype and sn.pn = pn.pn and sn.enabled and sn.status <> 'scrap' and position(pn.fixturetype in 'ABCDFGJKLNOPQRSUWX') > 0 and pn.productmodel = r.model and left(right(pn.productmodel,7),5) = m.maxmodel and t.version_ref = 'pcbVer' and pn.fixturever < m.maxpcbver and sn.fixturever < m.maxpcbver ) a 2023-03-27 10:05:40: pid 19201: LOG: DB node id: 1 backend pid: 2593215 statement: SELECT version() 2023-03-27 10:10:42: pid 19178: ERROR: unable to read data from DB node 1 2023-03-27 10:10:42: pid 19178: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 10:10:42: pid 19178: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:10:42: pid 19178: LOG: statement: DISCARD ALL 2023-03-27 10:10:42: pid 19178: LOG: DB node id: 1 backend pid: 2498545 statement: SELECT version() 2023-03-27 10:10:42: pid 19178: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:10:42: pid 19178: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 10:10:42: pid 19178: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:10:42: pid 19178: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:10:42: pid 19178: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 10:10:42: pid 7535: LOG: child process with pid: 19194 exits with status 256 2023-03-27 10:10:42: pid 7535: LOG: fork a new child process with pid: 19217 2023-03-27 10:10:42: pid 18867: LOG: new connection received 2023-03-27 10:10:42: pid 18867: DETAIL: connecting host=10.0.0.20 port=41608 2023-03-27 10:10:42: pid 18867: LOG: using clear text authentication with frontend 2023-03-27 10:10:42: pid 18867: DETAIL: backend will still use md5 auth 2023-03-27 10:10:42: pid 18867: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 10:10:42: pid 18867: LOG: statement: select date_part('isoyear',now()) 2023-03-27 10:10:42: pid 18867: LOG: DB node id: 1 backend pid: 2599789 statement: SELECT version() 2023-03-27 10:15:43: pid 14178: ERROR: unable to read data from DB node 1 2023-03-27 10:15:43: pid 14178: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 10:15:43: pid 14178: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:15:43: pid 14178: LOG: statement: DISCARD ALL 2023-03-27 10:15:43: pid 7535: LOG: child process with pid: 19178 exits with status 256 2023-03-27 10:15:43: pid 14178: LOG: DB node id: 1 backend pid: 2503601 statement: SELECT version() 2023-03-27 10:15:43: pid 14178: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:15:43: pid 14178: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 10:15:43: pid 14178: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:15:43: pid 14178: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:15:43: pid 14178: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 10:15:43: pid 7535: LOG: fork a new child process with pid: 19218 2023-03-27 10:15:43: pid 16906: LOG: new connection received 2023-03-27 10:15:43: pid 16906: DETAIL: connecting host=10.0.0.20 port=36812 2023-03-27 10:15:43: pid 16906: LOG: using clear text authentication with frontend 2023-03-27 10:15:43: pid 16906: DETAIL: backend will still use md5 auth 2023-03-27 10:15:43: pid 16906: HINT: you can disable this behavior by setting allow_clear_text_frontend_auth to off 2023-03-27 10:15:43: pid 16906: LOG: statement: select --'2023-03-26T21:03:42.944Z' at time zone 'Asia/Shanghai' as time, mlb_model, bu || ',' || mlb_rate as bu from report.bu_mlb_sc_distribution_rate() where bu <> '合计' order by bu desc limit 5 2023-03-27 10:15:43: pid 16906: LOG: DB node id: 1 backend pid: 2606140 statement: SELECT version() 2023-03-27 10:18:43: pid 8138: LOG: forked new pcp worker, pid=19225 socket=6 2023-03-27 10:18:43: pid 8138: LOG: PCP process with pid: 19225 exit with SUCCESS. 2023-03-27 10:18:43: pid 8138: LOG: PCP process with pid: 19225 exits with status 0 2023-03-27 10:19:04: pid 8138: LOG: forked new pcp worker, pid=19227 socket=6 2023-03-27 10:19:04: pid 8138: LOG: PCP process with pid: 19227 exit with SUCCESS. 2023-03-27 10:19:04: pid 8138: LOG: PCP process with pid: 19227 exits with status 0 2023-03-27 10:19:41: pid 8138: LOG: forked new pcp worker, pid=19229 socket=6 2023-03-27 10:19:41: pid 8138: LOG: PCP process with pid: 19229 exit with SUCCESS. 2023-03-27 10:19:41: pid 8138: LOG: PCP process with pid: 19229 exits with status 0 2023-03-27 10:20:44: pid 7535: LOG: child process with pid: 14178 exits with status 256 2023-03-27 10:20:44: pid 18495: ERROR: unable to read data from DB node 1 2023-03-27 10:20:44: pid 18495: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 10:20:44: pid 18495: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:20:44: pid 18495: LOG: statement: DISCARD ALL 2023-03-27 10:20:44: pid 18495: LOG: DB node id: 1 backend pid: 2508738 statement: SELECT version() 2023-03-27 10:20:44: pid 18495: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:20:44: pid 18495: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 10:20:44: pid 18495: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:20:44: pid 7535: LOG: fork a new child process with pid: 19230 2023-03-27 10:20:44: pid 18495: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:20:44: pid 18495: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 10:25:45: pid 8138: LOG: forked new pcp worker, pid=19242 socket=6 2023-03-27 10:25:45: pid 8138: LOG: PCP process with pid: 19242 exit with SUCCESS. 2023-03-27 10:25:45: pid 8138: LOG: PCP process with pid: 19242 exits with status 0 2023-03-27 10:25:46: pid 18651: ERROR: unable to read data from DB node 1 2023-03-27 10:25:46: pid 18651: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 10:25:46: pid 18651: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:25:46: pid 7535: LOG: child process with pid: 18495 exits with status 256 2023-03-27 10:25:46: pid 18651: LOG: statement: DISCARD ALL 2023-03-27 10:25:46: pid 18651: LOG: DB node id: 1 backend pid: 2513899 statement: SELECT version() 2023-03-27 10:25:46: pid 18651: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:25:46: pid 18651: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 10:25:46: pid 18651: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:25:46: pid 18651: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:25:46: pid 18651: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 10:25:46: pid 7535: LOG: fork a new child process with pid: 19243 2023-03-27 10:25:53: pid 8138: LOG: forked new pcp worker, pid=19245 socket=6 2023-03-27 10:25:53: pid 8138: LOG: PCP process with pid: 19245 exit with SUCCESS. 2023-03-27 10:25:53: pid 8138: LOG: PCP process with pid: 19245 exits with status 0 2023-03-27 10:28:02: pid 8138: LOG: forked new pcp worker, pid=19255 socket=6 2023-03-27 10:28:02: pid 8138: LOG: PCP process with pid: 19255 exit with SUCCESS. 2023-03-27 10:28:02: pid 8138: LOG: PCP process with pid: 19255 exits with status 0 2023-03-27 10:28:15: pid 8138: LOG: forked new pcp worker, pid=19257 socket=6 2023-03-27 10:28:15: pid 19257: FATAL: authentication failed for user "pgpool" 2023-03-27 10:28:15: pid 19257: DETAIL: username and/or password does not match 2023-03-27 10:28:15: pid 8138: LOG: PCP process with pid: 19257 exit with SUCCESS. 2023-03-27 10:28:15: pid 8138: LOG: PCP process with pid: 19257 exits with status 256 2023-03-27 10:28:21: pid 8138: LOG: forked new pcp worker, pid=19259 socket=6 2023-03-27 10:28:21: pid 8138: LOG: PCP process with pid: 19259 exit with SUCCESS. 2023-03-27 10:28:21: pid 8138: LOG: PCP process with pid: 19259 exits with status 0 2023-03-27 10:29:02: pid 18945: LOG: new connection received 2023-03-27 10:29:02: pid 18945: DETAIL: connecting host=[local] 2023-03-27 10:29:06: pid 18980: LOG: new connection received 2023-03-27 10:29:06: pid 18980: DETAIL: connecting host=[local] 2023-03-27 10:29:10: pid 18980: LOG: statement: show pool_nodes; 2023-03-27 10:29:10: pid 18980: LOG: DB node id: 1 backend pid: 2621579 statement: SELECT version() 2023-03-27 10:30:47: pid 19180: ERROR: unable to read data from DB node 1 2023-03-27 10:30:47: pid 19180: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 10:30:47: pid 19180: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:30:47: pid 19180: LOG: statement: DISCARD ALL 2023-03-27 10:30:47: pid 7535: LOG: child process with pid: 18651 exits with status 256 2023-03-27 10:30:47: pid 19180: LOG: DB node id: 1 backend pid: 2518988 statement: SELECT version() 2023-03-27 10:30:47: pid 19180: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:30:47: pid 19180: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 10:30:47: pid 19180: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:30:47: pid 7535: LOG: fork a new child process with pid: 19261 2023-03-27 10:30:47: pid 19180: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:30:47: pid 19180: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 10:31:55: pid 17541: LOG: new connection received 2023-03-27 10:31:55: pid 17541: DETAIL: connecting host=[local] 2023-03-27 10:31:55: pid 17541: LOG: forwarding cancel request to backend 2023-03-27 10:31:55: pid 17541: DETAIL: canceling backend pid:1032078 key: 1111850791 2023-03-27 10:31:56: pid 17541: LOG: forwarding cancel request to backend 2023-03-27 10:31:56: pid 17541: DETAIL: canceling backend pid:2621579 key: 909621098 2023-03-27 10:31:57: pid 17541: LOG: new connection received 2023-03-27 10:31:57: pid 17541: DETAIL: connecting host=[local] 2023-03-27 10:31:57: pid 17541: LOG: forwarding cancel request to backend 2023-03-27 10:31:57: pid 17541: DETAIL: canceling backend pid:1032078 key: 1111850791 2023-03-27 10:31:58: pid 17541: LOG: forwarding cancel request to backend 2023-03-27 10:31:58: pid 17541: DETAIL: canceling backend pid:2621579 key: 909621098 2023-03-27 10:32:05: pid 18934: LOG: new connection received 2023-03-27 10:32:05: pid 18934: DETAIL: connecting host=[local] 2023-03-27 10:32:05: pid 18934: LOG: forwarding cancel request to backend 2023-03-27 10:32:05: pid 18934: DETAIL: canceling backend pid:1032078 key: 1111850791 2023-03-27 10:32:06: pid 18934: LOG: forwarding cancel request to backend 2023-03-27 10:32:06: pid 18934: DETAIL: canceling backend pid:2621579 key: 909621098 2023-03-27 10:34:59: pid 8138: LOG: forked new pcp worker, pid=19269 socket=6 2023-03-27 10:34:59: pid 8138: LOG: PCP process with pid: 19269 exit with SUCCESS. 2023-03-27 10:34:59: pid 8138: LOG: PCP process with pid: 19269 exits with status 0 2023-03-27 10:35:18: pid 8138: LOG: forked new pcp worker, pid=19271 socket=6 2023-03-27 10:35:18: pid 8138: LOG: PCP process with pid: 19271 exit with SUCCESS. 2023-03-27 10:35:18: pid 8138: LOG: PCP process with pid: 19271 exits with status 0 2023-03-27 10:35:48: pid 19139: ERROR: unable to read data from DB node 1 2023-03-27 10:35:48: pid 19139: DETAIL: socket read failed with error "Connection reset by peer" 2023-03-27 10:35:48: pid 19139: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:35:48: pid 19139: LOG: statement: DISCARD ALL 2023-03-27 10:35:48: pid 19139: LOG: DB node id: 1 backend pid: 2524205 statement: SELECT version() 2023-03-27 10:35:48: pid 7535: LOG: child process with pid: 19180 exits with status 256 2023-03-27 10:35:48: pid 19139: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:35:48: pid 19139: DETAIL: while trying to write data from offset: 0 wlen: 22 2023-03-27 10:35:48: pid 19139: CONTEXT: while searching system catalog, When relcache is missed 2023-03-27 10:35:48: pid 19139: WARNING: write on backend 1 failed with error :"Broken pipe" 2023-03-27 10:35:48: pid 19139: DETAIL: while trying to write data from offset: 0 wlen: 5 2023-03-27 10:35:48: pid 7535: LOG: fork a new child process with pid: 19274