From: Björn Lundin <b.f.lundin@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Order by and timestamp
Date: Mon, 16 Mar 2020 17:01:33 +0100
Message-ID: <5FCD37B1-D13A-462E-A7F1-DABE31E10D9E@gmail.com> (raw)
In-Reply-To: <22d759ed-9ae1-de9a-936c-f8a48bcfaa0d@aklaver.com>
References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com>
<c171c26b-fd5e-b4bf-ec86-97b6f8dbcbe0@aklaver.com>
<48A75793-3914-40F5-877C-FD87AE85AE8A@gmail.com>
<22d759ed-9ae1-de9a-936c-f8a48bcfaa0d@aklaver.com>
>>>
>>> Is amarkets in more then one schema?
>> Yes but the table is empty in other schema (’dry’) - 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 är på.
AUTOCOMMIT off
psql (9.6.15, server 9.4.15)
Skriv "help" för hjälp.
bnl=> \dn
Lista med scheman
Namn | Ägare
--------+----------
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’ll reply to the other mail separately
thanks for replying
--
Björn Lundin
b.f.lundin@gmail.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: b.f.lundin@gmail.com, adrian.klaver@aklaver.com
Subject: Re: Order by and timestamp
In-Reply-To: <5FCD37B1-D13A-462E-A7F1-DABE31E10D9E@gmail.com>
References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com> <c171c26b-fd5e-b4bf-ec86-97b6f8dbcbe0@aklaver.com> <48A75793-3914-40F5-877C-FD87AE85AE8A@gmail.com> <22d759ed-9ae1-de9a-936c-f8a48bcfaa0d@aklaver.com> <5FCD37B1-D13A-462E-A7F1-DABE31E10D9E@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox