Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s90JG-00GhWq-43 for pgsql-general@arkaria.postgresql.org; Mon, 20 May 2024 10:32:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s90JG-000VYs-2J for pgsql-general@arkaria.postgresql.org; Mon, 20 May 2024 10:32:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s90JF-000VYj-K9 for pgsql-general@lists.postgresql.org; Mon, 20 May 2024 10:32:01 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1s90JB-001B0J-PF for pgsql-general@postgresql.org; Mon, 20 May 2024 10:32:00 +0000 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1eb24e3a2d9so79761795ad.1 for ; Mon, 20 May 2024 03:31:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716201116; x=1716805916; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=MAEzx+QlVIVNvBnYfRSPY5arLEc6yAoptFhjzb8yUDU=; b=mIAe73diwBQ0KUAo5QY4Qa+lhDWJolfabJcUuWNSI+V7tQu55aNor6xIx/ix6R55Vw /fsj0TM3/7btMqD1m043vUZNnnjm++sBknYI3Wcd/XtZGrVHjKATnYSKn1lJYsiV00fg 9vutKJWDk2dgSB8wINLNs8Mo4KNbr0CGpHeet1TytB1DCEvm6rzLUr5BVG5rOXW+ezjj e7TdwAX7AJeLzmsihONOiO3tVz89InijCYkyAL9ZABrpx8u9GP+XURRylZ84nr3mlJIl Ui/YG06JnRgJIS6KUaBRcSpYu+bAJkOd2zqErsJeZlDyZ1JoODNYi7uDIpAiogqYN1IA OMlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716201116; x=1716805916; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MAEzx+QlVIVNvBnYfRSPY5arLEc6yAoptFhjzb8yUDU=; b=TwtSa9pLZsM2RqbS1St13W4agHyXt4VouCzdkjA2tMJKlUqbdc16BppueQIseymMg4 eJL+lHnpiJXXuWIEtRovMfX9JHpz0eQD/heGotwiFgNmNK1neTPWsRz2YX/30GjOj2u2 GA8ftdJB5N0vcJ6mx8lLKm5F+in4wWryrIpnLVMzqLahW6DN46C06q2lKjRdA/MY08sP KTNMlqOYMj01CHZy1OSvHYPVHT2lZvbOo/GrJcMFLMDDKpd1j6gNbivbuMvkVjKYazF1 No4Ov28WaWus833nTbRMU7GLoz5sQ9Ua8qTUosUmdKIVZqkhdwkW8QL9bI+Xs+jF2sO5 1AfQ== X-Gm-Message-State: AOJu0YwOH7Re36BttHjy+IalU7nI1Y14+c+X561Ln/62TrLiWv+FXVmq MW08qhxcp9TSUjFtEDNeL3yPxmtOgLFlfwuKWUPmpOODJc+Xi42A90ofa9hiQuyhjw9raqWVc+O T3esr/ea87JxyMIl16E6m01YZE57Fv1w= X-Google-Smtp-Source: AGHT+IFQ0y2kfSUVycCLIISuZjMcAG7MizMRjn89aBGwpRdYEKOcmrOB7TE2c+ZZBKkOL/7iE9MRJWLNZur6ay6aYOc= X-Received: by 2002:a17:90a:b38e:b0:2b1:82f5:278c with SMTP id 98e67ed59e1d1-2b6cc4502f4mr32465571a91.8.1716201116239; Mon, 20 May 2024 03:31:56 -0700 (PDT) MIME-Version: 1.0 From: milist ujang Date: Mon, 20 May 2024 17:31:45 +0700 Message-ID: Subject: signal 11: Segmentation fault ; query constraint list; pg16.3 To: pgsql-general@postgresql.org Content-Type: multipart/alternative; boundary="000000000000e58f8b0618e03502" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e58f8b0618e03502 Content-Type: text/plain; charset="UTF-8" postgres 16.1; rocky 9.3 when connect to database postgres this query is OK, but run on user database, got segmentation fault. 2024-05-20 17:16:54.942 WIB,,,134291,,6648420a.20c93,165,,2024-05-18 12:52:10 WIB,,0,LOG,00000,"server process (PID 487952) was terminated by signal 11: Segmentation fault","Failed process was running: select ct.conname as constraint_name, a.attname as column_name, fc.relname as foreign_table_name, fns.nspname as foreign_table_schema, fa.attname as foreign_column_name from (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s FROM pg_constraint ct ) AS ct inner join pg_class c on c.oid=ct.conrelid inner join pg_namespace ns on c.relnamespace=ns.oid inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s] left join pg_class fc on fc.oid=ct.confrelid left join pg_namespace fns on fc.relnamespace=fns.oid left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s] where ct.contype='f' and c.relname='table1' and ns.nspname='schemauser' order by fns.nspname, fc.relname, a.attnum ;",,,,,,,,"","postmaster",,0 2024-05-20 17:16:54.942 WIB,,,134291,,6648420a.20c93,166,,2024-05-18 12:52:10 WIB,,0,LOG,00000,"terminating any other active server processes",,,,,,,,,"","postmaster",,0 -- regards ujang jaenudin | Self-Employed, DBA Consultant http://id.linkedin.com/pub/ujang-jaenudin/12/64/bab --000000000000e58f8b0618e03502 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
postgres 16.1; rocky 9.3

when connect t= o database postgres this query is OK, but run on user database, got segment= ation fault.


2024-05-20 17:16:54.94= 2 WIB,,,134291,,6648420a.20c93,165,,2024-05-18 12:52:10 WIB,,0,LOG,00000,&q= uot;server process (PID 487952) was terminated by signal 11: Segmentation f= ault","Failed process was running: select
=C2=A0 =C2=A0 ct.con= name as constraint_name,
=C2=A0 =C2=A0 a.attname as column_name,
=C2= =A0 =C2=A0 fc.relname as foreign_table_name,
=C2=A0 =C2=A0 fns.nspname a= s foreign_table_schema,
=C2=A0 =C2=A0 fa.attname as foreign_column_name<= br>from
=C2=A0 =C2=A0 (SELECT ct.conname, ct.conrelid, ct.confrelid, ct.= conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
= =C2=A0 =C2=A0 =C2=A0 =C2=A0FROM pg_constraint ct
=C2=A0 =C2=A0 ) AS ct=C2=A0 =C2=A0 inner join pg_class c on c.oid=3Dct.conrelid
=C2=A0 =C2= =A0 inner join pg_namespace ns on c.relnamespace=3Dns.oid
=C2=A0 =C2=A0 = inner join pg_attribute a on a.attrelid=3Dct.conrelid and a.attnum =3D ct.c= onkey[ct.s]
=C2=A0 =C2=A0 left join pg_class fc on fc.oid=3Dct.confrelid=
=C2=A0 =C2=A0 left join pg_namespace fns on fc.relnamespace=3Dfns.oid=C2=A0 =C2=A0 left join pg_attribute fa on fa.attrelid=3Dct.confrelid and= fa.attnum =3D ct.confkey[ct.s]
where
=C2=A0 =C2=A0 ct.contype=3D'= ;f'
=C2=A0 =C2=A0 and c.relname=3D'table1'
=C2=A0 =C2=A0 = and ns.nspname=3D'schemauser'
order by
=C2=A0 =C2=A0 fns.nspn= ame, fc.relname, a.attnum
;",,,,,,,,"","postmaster&q= uot;,,0

2024-05-20 17:16:54.942 WIB,,,134291,,6648420a.20c93,= 166,,2024-05-18 12:52:10 WIB,,0,LOG,00000,"terminating any other activ= e server processes",,,,,,,,,"","postmaster",,0

--
regards

ujang jaenudin | Self-Employed, D= BA Consultant
http://id.linkedin.com/pub/ujang-jaenudin/12/64/bab=
--000000000000e58f8b0618e03502--