Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7zqW-00013n-NA for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Oct 2017 08:18:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e7zqW-000317-9r for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Oct 2017 08:18:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e7zqV-0002xN-IX for pgsql-bugs@postgresql.org; Fri, 27 Oct 2017 08:18:27 +0000 Received: from ns5.gunduz.org ([107.170.136.15] helo=ns1.gunduz.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e7zqN-0007G0-PV for pgsql-bugs@postgresql.org; Fri, 27 Oct 2017 08:18:27 +0000 Received: from asus-laptop03 (unknown [85.255.232.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ns1.gunduz.org (Postfix) with ESMTPSA id C25F73FD08; Fri, 27 Oct 2017 08:18:15 +0000 (UTC) Message-ID: <1509092292.24698.1.camel@gunduz.org> Subject: Re: Creating a table by loading a sql file. From: Devrim =?ISO-8859-1?Q?G=FCnd=FCz?= To: rhodesm4 , "pgsql-bugs@postgresql.org" Date: Fri, 27 Oct 2017 09:18:12 +0100 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-gIcAfUZftlYz1cspHS9L" X-Mailer: Evolution 3.24.6 (3.24.6-1.fc26) Mime-Version: 1.0 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --=-gIcAfUZftlYz1cspHS9L Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, 2017-10-27 at 04:55 +0000, rhodesm4 wrote: > psql:users.sql:10: ERROR: syntax error at or near "USER" > LINE 1: CREATE TABLE USER( USER is a reserved keyword in PostgreSQL: https://www.postgresql.org/docs/current/static/sql-keywords-appendix.html You need to change the table name. Regards, --=20 Devrim G=C3=BCnd=C3=BCz EnterpriseDB: https://www.enterprisedb.com PostgreSQL Consultant, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR --=-gIcAfUZftlYz1cspHS9L Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH8GKHNUOKtDEiyD22MM9/pLPbrUFAlny68UACgkQ2MM9/pLP brWAgRAApmtkfxa9G8W1VYyHmzOF8vg/hpBVYMeGmSXDf028j32fcHkhD+LaAT7x DiuL4QnuwIMHCeo1JAtKBlXJT0B/auWpSdo8ooJ2eX1wEqipjLiT8RCtoEONCpYM c7k8jfVbjsGJPJmDQVXs9KAtA/rWjCiYcUZa6aPB/ASKy6w7UoE2Yayt6Wtp5wdz JqG1T+JEcola7yg5yJ7ayTDWFkoqFM08lq8n0tgIjFnBXNF/llNIZ8t/wf6MHNDC 6g+moAzM34xSibQTsm+ASthVPumye3KMNuSt8aG4qIvlWjx4XaQAbQnrXO3Cx/b4 wkFQ+4Zr5bN1Y/ejy5BuiBuv/xk3v6PB6wXPFLTv3BZKyKohC7mnjkqxMlzRRvGc 12dYEYIlOvdjRWtG6fiaq9XxQnrPsEyl3Q7RKfmZfFK7kwDhSWpvrbgTwU5elyRf 7d1EQJGKbMMGckbF3e50ePwgY4jGIJi35zU1WFzl86XjU8ci2Dv+gGHPEps8Y4Ej /eO15pL3TA188ip9seGvFaOBDatVGemKUzJC7t+VLQCuFwTbLFR8AUhRwVCSN+hX z5+MdwXzlRRH30vQPAIQXdv6wTad8S3xsa/Exq2t1njBeIjbxgTwT6XPYL+dVPuy wWwEOXsSL65x+XXNhNFisQd0mMiEPcOaSvjnzTuyEMCuE2mrkSA= =hQIQ -----END PGP SIGNATURE----- --=-gIcAfUZftlYz1cspHS9L--