From: Björn Lundin <b.f.lundin@gmail.com>
To: Steven Lembark <lembark@wrkhors.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Order by and timestamp
Date: Mon, 16 Mar 2020 09:41:02 +0100
Message-ID: <37D93689-47B2-4C73-9FAB-65FC820C345F@gmail.com> (raw)
In-Reply-To: <20200315164835.4ba454b1.lembark@wrkhors.com>
References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com>
<20200315164835.4ba454b1.lembark@wrkhors.com>
>
> (1) Suggest using "pastebin.com <http://pastebin.com/>"; for this kind of data. It may not
> look very pretty -- or readable at all -- on the viewer's end
> depending on their settings (see below for example).
Ok, sorry about that.
https://pastebin.com/2XANMcF6 <https://pastebin.com/2XANMcF6;
Odds rows market with ** at the end of the rows
>
> (3) "Old database" might mean anyting. Provide the PG version
> it was created in and the one you are using along with the
> result of "\d+" in the current database.
version
------------------------------------------------------------------------------------------------
PostgreSQL 9.4.15 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit
(1 rad)
bnl@ibm2:~$ uname -a
Linux ibm2 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64 GNU/Linux
bnl=> \d+
Lista med relationer
Schema | Namn | Typ | Ägare | Storlek | Beskrivning
--------+----------------+---------+-------+------------+----------------------------
public | abets | tabell | bnl | 62 MB | Bets
public | abets_found | tabell | bnl | 702 MB |
public | adiff | tabell | bnl | 0 bytes | Price diff between 1 and 2
public | aevents | tabell | bnl | 968 kB | collected runners
public | amarkets | tabell | bnl | 15 MB | collected runners
public | aprices | tabell | bnl | 122 MB | runners odds
public | apriceshistory | tabell | bnl | 95 GB | runners odds during race
public | arunners | tabell | bnl | 124 MB | collected runners
public | bet_id_serial | sekvens | bnl | 8192 bytes |
(9 rader)
> (4) Classic causes of this are a botched index. Depending on the
> size you might just want to either drop and re-add the
> indexes or export and reload the table (e.g., \copy to ...
> + truncate + \copy from ...). The point there would be
> fully rebuilding the table and index structure.
But there is no index on startts
I’ll try that later on.
> (6) Don't gamble on horses, play the stock market instead: It
> sounds fancier and you can loose much more money much more
> quickly... er... yeah.
I can guarantee you that you can loose on horses in any rate you prefer. :-)
> What this looks like on my end. Feel free to try and make sense
> of it yourself.
Ok - point taken.
--
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, lembark@wrkhors.com
Subject: Re: Order by and timestamp
In-Reply-To: <37D93689-47B2-4C73-9FAB-65FC820C345F@gmail.com>
References: <63004F55-4CA3-40F8-A898-E7A646B0EBD3@gmail.com> <20200315164835.4ba454b1.lembark@wrkhors.com> <37D93689-47B2-4C73-9FAB-65FC820C345F@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