Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jDsCv-0002U3-1y for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 16:03:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDsCt-0005b3-T0 for pgsql-general@arkaria.postgresql.org; Mon, 16 Mar 2020 16:03:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jDsBS-0000kn-KI for pgsql-general@lists.postgresql.org; Mon, 16 Mar 2020 16:01:42 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jDsBO-0001Xo-9o for pgsql-general@postgresql.org; Mon, 16 Mar 2020 16:01:40 +0000 Received: by mail-lj1-x244.google.com with SMTP id 19so19242937ljj.7 for ; Mon, 16 Mar 2020 09:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=kyJg8qlqvEcqpLJSyIYOyLCwlnLxh+Fq0GATPdqtD8o=; b=q5j0TZIoUkJDrNruI9NOemdLDcYvhOenJDWvWFQ8+KV49abbiw6C94RTG2nnx4bJLY uLljInO41CirzpUboVBz5Q3v3YBR4VpKM6Kgn8ltRYrIPSL+aPl+45GlT3rbKmQgf5Oy aStYPC3uFStyPLkJRXxwkPB6ppXXCEu/8IUGGdTwlramd4T6wF+LYwfIwaSKXj0uCydZ AIy/R03OHGlrtMHJWSWBumd8V8jXNV02Bc7hoHdLHrLMImplLYvUPRbQE2Jcy3tWulG4 O0kDrtmeWMGDJRNNCyjANMnF4gr6o+z8gEEsB/fNBRzX6f2pwPrEtb5os2TFKOikerro R6Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=kyJg8qlqvEcqpLJSyIYOyLCwlnLxh+Fq0GATPdqtD8o=; b=TfDm/tplotJ8gfxiv12OH7P5fV2dkavuGyaQIhhC6IA7vumnBfl+LKxI8A5rvxWVF0 ZoVEm2SrdoXcy2jsEZlrkBe/o3EFkZd5KA+cH0vil7MXtpxYI1AnBlTdQUIRvvxBaLvg whbQldXRmIZacBL6L/ShoLj51wGEjd9DQNHZ26rKtPmx2gavsG73p7JvEvCupb+cXhRh aL8WPw/Xo2KZI04kk3Cp/FEG3m1rPgyoUc3ydi0OP2JubL5lSU0psQNLW4AfEtBZTCRH oNZXDhpDyneWPgVbTb7nlGtqfSjnrqeATmyqSAcuVJxN1KZNwtbixCEkQ/pvA3TiHkRq wmLQ== X-Gm-Message-State: ANhLgQ3kbRRu2AwLDCvC84ML20mESUMgY0P55o35NLgjFgn3NrMC1+9f bFPAiFUKvq5QsWxwRvSyE2S6zmDUMws= X-Google-Smtp-Source: ADFU+vvm+ui7KKARKUpB0ZTejqpldMEoCHUdsFp7LbLG6vxqHL/YaKvjK3g1229u6Ai0hsBdl2qDiA== X-Received: by 2002:a2e:7d02:: with SMTP id y2mr26509ljc.62.1584374495652; Mon, 16 Mar 2020 09:01:35 -0700 (PDT) Received: from imac.lan (81-227-64-79-no276.tbcn.telia.com. [81.227.64.79]) by smtp.gmail.com with ESMTPSA id o25sm236601lfi.2.2020.03.16.09.01.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 09:01:34 -0700 (PDT) From: =?utf-8?Q?Bj=C3=B6rn_Lundin?= Message-Id: <5FCD37B1-D13A-462E-A7F1-DABE31E10D9E@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_8ED4538B-01C3-40B6-BBCF-5B4A85843D16" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Order by and timestamp Date: Mon, 16 Mar 2020 17:01:33 +0100 In-Reply-To: <22d759ed-9ae1-de9a-936c-f8a48bcfaa0d@aklaver.com> Cc: pgsql-general@postgresql.org To: Adrian Klaver References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com> <48A75793-3914-40F5-877C-FD87AE85AE8A@gmail.com> <22d759ed-9ae1-de9a-936c-f8a48bcfaa0d@aklaver.com> X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_8ED4538B-01C3-40B6-BBCF-5B4A85843D16 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >>>=20 >>> Is amarkets in more then one schema? >> Yes but the table is empty in other schema (=E2=80=99dry=E2=80=99) - = and has less idexes >> It is also present in imports - but empty there as well >=20 > Actually the below indicates it is in other databases. A schema would = be a namespace within a database, see here: >=20 > https://www.postgresql.org/docs/12/sql-createschema.html >=20 > In your original example the 'public' in public.amarkets. > So just to be complete \dn in psql will show you the schemas in a = database. Given the search_path("$user",public) shown below I suspect = you have only a public schema. $user matches a schema named for the = current user and generally is not there. bnl@ibm2:~$ psql Tidtagning =C3=A4r p=C3=A5. AUTOCOMMIT off psql (9.6.15, server 9.4.15) Skriv "help" f=C3=B6r hj=C3=A4lp. bnl=3D> \dn Lista med scheman Namn | =C3=84gare =20 --------+---------- public | postgres (1 rad) Yes only 1 schema Hmm to be clear, I have the problem on a machine=20 Called ibm running debian In a 9.4 database called bnl This also have database dry and import which both contain the same table = (with only PK - no index) - but both those are empty. Then I said I have the same dataset on another another box Called tp, running ubuntu With a 10.6 database called bnl Which works I=E2=80=99ll reply to the other mail separately=20 thanks for replying -- Bj=C3=B6rn Lundin b.f.lundin@gmail.com --Apple-Mail=_8ED4538B-01C3-40B6-BBCF-5B4A85843D16 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Is amarkets in more then one schema?
Yes but the table is empty in other schema = (=E2=80=99dry=E2=80=99) - and has less idexes
It is also = present in imports - but empty there as well

Actually the below indicates it = is in other databases. A schema would be a namespace within a database, = see here:

https://www.postgresql.org/docs/12/sql-createschema.html
In your original example the 'public' in = public.amarkets.
So just to be complete \dn in psql will = show you the schemas in a database. Given the = search_path("$user",public) shown below I suspect you have only a public = schema. $user matches a schema named for the current user and generally = is not there.

bnl@ibm2:~$ psql
Tidtagning =C3=A4r p=C3=A5.
AUTOCOMMIT off
psql = (9.6.15, server 9.4.15)
Skriv = "help" f=C3=B6r hj=C3=A4lp.

bnl=3D>= ; \dn
 Lista med scheman
  Namn  |  =C3=84gare  =  
--------+----------
 public | postgres
(1 rad)


Yes only 1 = schema


Hmm to be clear, I have the problem on a = machine 
Called ibm running debian
In a 9.4 = database called bnl

This also have = database dry and import which both contain the same table (with only PK = - no index) - but both those are empty.

Then I said I have the same dataset on another = another box
Called tp, running ubuntu
With a 10.6 = database called bnl
Which works

I=E2=80=99ll reply to the other mail = separately 

thanks for = replying


--
Bj=C3=B6rn Lundin




= --Apple-Mail=_8ED4538B-01C3-40B6-BBCF-5B4A85843D16--