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 1rKg76-003zaw-5J for pgsql-general@arkaria.postgresql.org; Tue, 02 Jan 2024 14:51:28 +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 1rKg74-00G9hL-SL for pgsql-general@arkaria.postgresql.org; Tue, 02 Jan 2024 14:51:26 +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 1rKg74-00G9hD-HY for pgsql-general@lists.postgresql.org; Tue, 02 Jan 2024 14:51:26 +0000 Received: from mail.verite.pro ([185.16.44.216]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rKg71-00FAQf-TQ for pgsql-general@lists.postgresql.org; Tue, 02 Jan 2024 14:51:25 +0000 Received: by mail.verite.pro (Postfix, from userid 1000) id ED60E8C032B; Tue, 2 Jan 2024 15:51:21 +0100 (CET) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: Import csv to temp table From: "Daniel Verite" To: "arun chirappurath" Cc: pgsql-general@lists.postgresql.org In-Reply-To: Date: Tue, 02 Jan 2024 15:51:21 +0100 Message-Id: <369a8ac6-e77d-4de6-878a-01eee781acaf@manitou-mail.org> X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk arun chirappurath wrote: > Do we have any scripts that create a temp table with column names > from the first row of csv files? csvkit [1] does that. [1] https://csvkit.readthedocs.io/en/latest/ Best regards, --=20 Daniel V=E9rit=E9 https://postgresql.verite.pro/ Twitter: @DanielVerite