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 1jjSPk-00050e-Dz for pgsql-general@arkaria.postgresql.org; Thu, 11 Jun 2020 18:59:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jjSPh-0004Pc-Ni for pgsql-general@arkaria.postgresql.org; Thu, 11 Jun 2020 18:58:57 +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 1jjSPh-0004Ly-E8 for pgsql-general@lists.postgresql.org; Thu, 11 Jun 2020 18:58:57 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jjSPc-0005PT-Pa for pgsql-general@postgresql.org; Thu, 11 Jun 2020 18:58:55 +0000 Received: by mail-ed1-x52d.google.com with SMTP id q13so4701751edi.3 for ; Thu, 11 Jun 2020 11:58:52 -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=trrDYc1JBjUGwMD15M5Fojl3gzalIrkEprDf1eu2XRE=; b=oaznHXE7pUjsWCN0Nob9nOzsbJIKSIeuWIOhmjM7OANorpUpNhbZpwJ2OOD33FPa4d Wy35pgnhDabqakh8jDwutXMcOCznvRvlAd6mM273vatbgnGpnTIwHEZ1rpQfyrUTDsV3 2Qw1WXXsFww1ewCPXEMm5wXj0Sjl5qIr2RvgKnmnVecSV8Xn9m3kfO2DSicP2bkwHdHN PNO3JfUZ7V+6xMFakrEL3DNv1gFJ1draON/YK1lfGB2aQg0UYRmwNG+LNo6Y5byZPtDW tNVW20dQzPeKuENY5maGDCN0uNGs1gJqWEvjkqBqV4jmolise8DrpB92UE1Ri7TmyOpF Oo3w== 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=trrDYc1JBjUGwMD15M5Fojl3gzalIrkEprDf1eu2XRE=; b=GRoXM9VUBHGNUOi5qOHukEUTFBD+zon0HXx8gptK3NApA8E4nA6dP2yILO/t2U5JA6 VNHFz86lG0qSFQjkp2PaCcJIOskYJqZEaRHKs451AjzOqAt9er9nfDIzarYD1M1XpETf JA3hWmgqwjAEV+a60tFxXfWIEKTAPHQvNlKNA90txbOsBJkVXoBW1l+Xhu4Qpgd6Vw3/ IkQ1DFpKRYrPCvo4IWVE3nthIMM9fiWV55igHK0pC8G7wcvjXoITFHrHpexBjGgA6viD pfyQtz1SoBPx/kHkUTVdUXIQE2HsvPy3dnswg0KN7i81WvOnb2vaPqIFkNwqpb/9Gp1N My+w== X-Gm-Message-State: AOAM530bs+PWT5urVB2hC1LZts52sezOfjFTD+PCGrDGXBGfIEu6/IM/ j9/zsMyHLHp8cYBGaYghPqA= X-Google-Smtp-Source: ABdhPJyNB3ik2ERLuIshAb0w4/tU+h98/IsAk5BEQFEQJ2WEiiL+AOuAHkeXzMmNXGxoc3S13j6Nyg== X-Received: by 2002:a50:d7de:: with SMTP id m30mr7934334edj.183.1591901930502; Thu, 11 Jun 2020 11:58:50 -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 k9sm1932602edl.83.2020.06.11.11.58.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jun 2020 11:58:49 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: table name From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: Date: Thu, 11 Jun 2020 20:58:49 +0200 Cc: pgsql-general Content-Transfer-Encoding: 7bit Message-Id: <75D93B48-9BBC-41C9-A1F8-CB1142F0A031@gmail.com> References: To: Marc Millas X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Marc, > On 11. Jun, 2020, at 20:54, Marc Millas wrote: > sorry if my question is tooo simple :-) it's not. :-) > obviously if I ask: > select * from regions-20180101; > I get a syntax error. > if I try select * from $$regions_20180101$$; > I get another syntax error. > If I try to rename that table, same thing. > if I try a cte, same thing. > > What should I do ? you can just quote its name: select * from "regions-20180101"; Cheers, Paul