Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPjej-00044a-MP for pgsql-general@arkaria.postgresql.org; Tue, 06 Oct 2020 09:53:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPjei-00068z-KT for pgsql-general@arkaria.postgresql.org; Tue, 06 Oct 2020 09:53:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPjei-00068r-AP for pgsql-general@lists.postgresql.org; Tue, 06 Oct 2020 09:53:12 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kPjec-0005W0-4k for pgsql-general@postgresql.org; Tue, 06 Oct 2020 09:53:11 +0000 Received: by mail-ej1-x629.google.com with SMTP id u21so16716326eja.2 for ; Tue, 06 Oct 2020 02:53:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5ET+GCI79/iz38vLf6UgT5lBJGgPxK2pK5j2R/U52fU=; b=YRLrSe+W1+vSYM/pVoQBj2gLm/KKBUhenpTrLyfitZi7ArnnMls8CBaJzP8YhBfevC IVEHBk1QYTC38yOl1iajTtQpQI8k/LaoIiUYDT1dWkL2LHN5KFQsD8QT9F6DnfIYgIRh o2i2xuOZpPem0mQikCdmSV9B4MndlppSFd2y7n8AL8UwAkums3QFM1StVZOsScGzwOK6 eJ7JE3LVEh6lyPV2DNpMWknRrAhFmPQyff/e7HV/a0R/JyV21oCqFmr3Ziiuws5nljSH J2eYk5Q84UDI/JBVsJc4dxRipHdFx9sO7Q1x2FM9b/+mO8/Bd2vOfBM6NJXQCHlhB5Gw ueCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5ET+GCI79/iz38vLf6UgT5lBJGgPxK2pK5j2R/U52fU=; b=IF/jGylLxq5SLapJ1FwHe12jqKf5iR0eMJ4EoXumypcLhQMaQZKUeLyMcX8InJab/s O4SspkcQVgsuJOrYo38S04FgD9g2hftipyKTN5A1ciUCM+uTAZAnzMKsXMreHxGhsfZm YPKRYEDguyTFLpwAMcaWj80tnlP/QrUFD8wYSrFD0PceFj2zeqr1ckiCohAmUzsm5+Ev NgS1nVD+qTvX3PPPyaVH03LIF+uHaQlaSDBRDHBoExp/JC3FVrJVWOXFRwjwuwfpbZTA DaFc/3OidZRefLufVznEeXqzvrZf/m3mjolRBkyzpnd2oNNY78mpyhZgcmtjJvBnq5xA 67NQ== X-Gm-Message-State: AOAM533tDKmT3RhhBGqAye/qnXP+CzF640/TBluVctT4gLpm1b+bf0rF 0OtWQAKWF4acKU28rXlBZfY= X-Google-Smtp-Source: ABdhPJzQ9ioNw5Wl/TDV/hKiaHeF9x0y0wbx59cz8QgxgfxVt3CpfmxKkuDW2VtMYDeCo5M5dg6eUQ== X-Received: by 2002:a17:906:4e86:: with SMTP id v6mr4220856eju.37.1601977984580; Tue, 06 Oct 2020 02:53:04 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id q22sm1925450edi.41.2020.10.06.02.53.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Oct 2020 02:53:03 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: How to execute the sql file in PSQL From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: Date: Tue, 6 Oct 2020 11:53:00 +0200 Cc: Tom Lane , Adrian Klaver , pgsql-general@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1732342.1601913668@sss.pgh.pa.us> To: Mark X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Mark, > On 06. Oct, 2020, at 10:23, Mark wrote: >=20 > Actually, a single quotation will work. > \ir 'C:\\Program Files\\PostgreSQL\\12\\demo-big-en-20170815.sql' > But I don't know why a single quotation will work. > It would be very helpful if you guys can explain to me.=20 because Microsoft had the glorious idea of putting a blank character = into "Program Files". Quoting this will make the whole C:\...sql line = one single word which is then passed to \i. Cheers, Paul=