From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Björn Lundin <b.f.lundin@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Order by and timestamp
Date: Sun, 15 Mar 2020 20:41:03 -0400
Message-ID: <24142.1584319263@sss.pgh.pa.us> (raw)
In-Reply-To: <c171c26b-fd5e-b4bf-ec86-97b6f8dbcbe0@aklaver.com>
References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com>
<c171c26b-fd5e-b4bf-ec86-97b6f8dbcbe0@aklaver.com>
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 3/15/20 2:33 PM, Björn Lundin wrote:
>> I then did ’select * from AMARKETS order by STARTTS’
> Is amarkets in more then one schema?
Yeah, it's hard to think of any explanation other than "the query used a
corrupt index on startts to produce the ordering". But your \d doesn't
show any index on startts. So maybe there's more than one amarkets
table?
Another possibly-useful bit of evidence is to see what EXPLAIN shows as
the query plan for this query.
regards, tom lane
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: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, b.f.lundin@gmail.com
Subject: Re: Order by and timestamp
In-Reply-To: <24142.1584319263@sss.pgh.pa.us>
References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com> <c171c26b-fd5e-b4bf-ec86-97b6f8dbcbe0@aklaver.com> <24142.1584319263@sss.pgh.pa.us>
* 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