Re: Order by and timestamp

From: Björn Lundin <b(dot)f(dot)lundin(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Order by and timestamp
Date: 2020-03-16 16:01:33
Message-ID: 5FCD37B1-D13A-462E-A7F1-DABE31E10D9E@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


>>>
>>> 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(at)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(dot)f(dot)lundin(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Björn Lundin 2020-03-16 16:03:04 Re: Order by and timestamp
Previous Message Adrian Klaver 2020-03-16 15:46:37 Re: Order by and timestamp