Re: [GENERAL] Query Using Massive Temp Space

2017-11-19 Thread Laurenz Albe
termine what is going on, EXPLAIN (ANALYZE, BUFFERS) output would be useful. Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Query on pg_settings view

2017-11-15 Thread Laurenz Albe
hen I run a select on pg_settings with these two users I recieve different > results. That is intentional, because some settings should only be visible for superusers, for example everything that has to do with the operating system (location of configuration file or socket directories). Yours, La

Re: [GENERAL] pg_basebackup running from a remote machine

2017-11-14 Thread Laurenz Albe
output TAR file will be compressed, it has nothing to do with the data transfered from the server. If you want to compress the data sent over the network, use pg_basebackup over an SSL connection with SSL compression enabled. Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] sync the data's from catalog table

2017-11-13 Thread Laurenz Albe
re you trying to achieve? Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Oracle to PostgreSQL

2017-11-09 Thread Laurenz Albe
NVOICE_NUM%TYPE, > TXN_CNT NUMBER >); You can create a composite type in PostgreSQL: CREATE TYPE complex AS (r integer, i integer); >TYPE INV_LINES_T IS TABLE OF INV_LINES_RT; You would use an array in this case: DECLARE carr complex[]; Yours, Laurenz Albe -- Sent v

Re: [GENERAL] Oracle to PostgreSQL

2017-11-09 Thread Laurenz Albe
Brahmam Eswar wrote: > How to migrate the Oracle collection types ( IsTableOF, IsRecord) to postgres. Are you talking about table definitions or PL/SQL code? Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: h

Re: [GENERAL] Fwd: standby stop replicating, then picked back up

2017-11-07 Thread Laurenz Albe
information. If there is nothing suspicious in the log, and hot standby is enabled, and the standby is configured appropriately, it could be that a conflicting query on the standby block WAL application for a while. Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@po

Re: [GENERAL] Incremental refresh - Materialized view

2017-11-06 Thread Laurenz Albe
hat brings the "materialized view" up to date. Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Building tds_fdw Extension for Windows 64bit

2017-11-02 Thread Laurenz Albe
anyone help? Based on my experience with oracle_fdw, I would change the function declaration in tds_fdw.h to extern PGDLLEXPORT Datum tds_fdw_handler(PG_FUNCTION_ARGS); Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Query plan for Merge Semi Join

2017-11-01 Thread Laurenz Albe
r is indeed surprising. I *assume* that it refers to numbers eliminate from the merge join result, but that's only guessing. > The materialize returns 184791 rows. This one I understand: There are 6 > non-null distinct values of arbeitsvolumen in facttable_kon_eh, and each > appears 369

Re: [GENERAL] query not scaling

2017-10-30 Thread Laurenz Albe
591) > Index Cond: ((m.chrom = 22) AND (m.basepos >= s.startbase) AND (m.basepos <= s.endbase)) I think your biggest problem is the join condition on m.basepos between s.startbase and s.endbase That forces a nested loop join, which cannot be performed efficiently. Yours, La

Re: [GENERAL] query not scaling

2017-10-26 Thread Laurenz Albe
base parameters identical? Also, to have PostgreSQL inline the function, which would be good for performance, it should be declared IMMUTABLE. Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Index corruption & broken clog

2017-10-13 Thread Laurenz Albe
4) 5.4.0 20160609, 64-bit PostgreSQL did not complain about an index being zeroed, it just says it can't find a certain page (which probably never existed). The missing CLOG entries are probably just an effect of data corruption - a tuple that contains a non-existing transaction number.

Re: [GENERAL] Restore LargeObjects on different server

2017-10-12 Thread Laurenz Albe
same OID in the second database. I'd restore the large objects and manually fix all collisions (import the problematic large objects with a different OID and adjust the referencing tables accordingly). This might prove difficult if there are a lot of collisions, but I don't think that the

Re: [GENERAL] Checkpoint write time - anything unusual?

2017-10-03 Thread Laurenz Albe
on_target is 0.9, spending 0.9 * 3600 = 3240 seconds per hour doing checkpoints would be normal. The whole point of this parameter is to spread checkpoints across a longer time to avoid I/O spikes. Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To mak