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 1svDI1-00DDvm-7P for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2024 10:06:02 +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 1svDHz-00Fotv-Ay for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2024 10:05:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1svDHy-00Fotn-TN for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2024 10:05:58 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1svDHw-001m2j-Ax for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2024 10:05:57 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5c42f406fa5so3118474a12.0 for ; Mon, 30 Sep 2024 03:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=cybertec.at; t=1727690754; x=1728295554; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=DkUA7f4Pa5RahVrwXf1rTH/9xcOrz5MQ48Inn3GKK5Y=; b=E8fQMWP+UnlF57MLcOoyVSGGp11kZ2Yg31x3eWSq5CfVjZsfmeh/IDdTBPNhU4tw4q rAC1apFt7uL4txyXyln9Qu31Wq8BZX2e4Udgy2gOH1PUAC01ScTreuFl+64pLA4m8MjS jcUtOKrxRXRTj/rOS+d6Y4HOZ2nP227K3Iw5U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727690754; x=1728295554; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=DkUA7f4Pa5RahVrwXf1rTH/9xcOrz5MQ48Inn3GKK5Y=; b=eoMLNoMa/tJroY6mf5p6zzXx7qil0wOsXNkInmb/SXG/DbWnlDGzUUNOx2R158Lrqf fmfqoZ2XjyJcyQ5XauTbUsRWbSv8nMJc7TovhAFK6/JYSBHvW8NZBeomcJ3qM2Cb2te1 VCfecQcUvKEMAggBI8bpjPmNmHGCzg3azFxe32c8i3G+xMJal07ZTR7xIfAovJo6DWgO liyjRzGEkTgxFjbCHutBz31BHJngChBDVBFQi5yG6SDEegd/d3UaaSbSWncOm3LhQcUb v/npVrdyLNh8iL3ZJnYgFRT7fUDZtvJI3oQlwYgRi+UZ1b8EDLK0vSgw3zS5aNL9lIbn BYbg== X-Forwarded-Encrypted: i=1; AJvYcCXCVVpe3yb4Kh6yYIBt5Lpy4DWh1pvRUIf1eo/SY9gUy98uITtIsQagJRPrcO/7kthtzo52Lue5q+2ajlQj@lists.postgresql.org X-Gm-Message-State: AOJu0YxFPgVnrny0KF/J4UfUsCmaFjITpdKx+xCl4PwJMy1mlCA1Ndka Npl1o6FHCXyN76FqLgRO+8YxYc8VJ90HI8ZZ/pzNs4T9PzvB/hVmaF/OndC08L2NUF8IoB6Xjh/ Y X-Google-Smtp-Source: AGHT+IFj8u8eB5K+YZew3Our6mYFH55152iKOJ9E/3zNqcekNgisXUEr0enjMfcSCDvthDVYDZ4jlA== X-Received: by 2002:a05:6402:2691:b0:5c8:9ec7:eced with SMTP id 4fb4d7f45d1cf-5c89ec7ef7amr1758226a12.14.1727690753823; Mon, 30 Sep 2024 03:05:53 -0700 (PDT) Received: from [10.1.138.108] ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c882493f55sm4239357a12.91.2024.09.30.03.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 03:05:53 -0700 (PDT) Message-ID: Subject: Re: Userland copy of pg_statistic - is there a solution? From: Laurenz Albe To: =?ISO-8859-1?Q?Vin=EDcius_Abrah=E3o?= , pgsql-general@lists.postgresql.org Date: Mon, 30 Sep 2024 12:05:52 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2024-09-30 at 08:31 +0100, Vin=C3=ADcius Abrah=C3=A3o wrote: > postgres=3D# create table backup_pg_statistic as select * from pg_statist= ic; > 2024-09-30 08:25:56 BST [7400]: user=3Dvinnix,db=3Dpostgres,app=3Dpsql,cl= ient=3D[local] ERROR: =C2=A0column "stavalues1" has pseudo-type anyarray > 2024-09-30 08:25:56 BST [7400]: user=3Dvinnix,db=3Dpostgres,app=3Dpsql,cl= ient=3D[local] STATEMENT: =C2=A0create table backup_pg_statistic as select = * from pg_statistic; > ERROR: =C2=A0column "stavalues1" has pseudo-type anyarray > Time: 9.544 ms > postgres=3D# create table test_array(a anyarray); > 2024-09-30 08:26:40 BST [7400]: user=3Dvinnix,db=3Dpostgres,app=3Dpsql,cl= ient=3D[local] ERROR: =C2=A0column "a" has pseudo-type anyarray > 2024-09-30 08:26:40 BST [7400]: user=3Dvinnix,db=3Dpostgres,app=3Dpsql,cl= ient=3D[local] STATEMENT: =C2=A0create table test_array(a anyarray); > ERROR: =C2=A0column "a" has pseudo-type anyarray > Time: 9.137 ms >=20 >=20 > Is there a solution for this simple problem? Use a text[] for your copy of the stavalues* columns. Yours, Laurenz Albe