Re: [GENERAL] Hot standby and xlog on a ramdisk

2016-02-04 Thread Tore Halvorsen
slave should be ok in all cases as long as the archive and master retains all wal files that are not applied? I maintain a fairly active database (>100GB of wal files every day) and putting the wal files on a ramdisk (only for the slaves of course) helped quite a lot. -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] Tore Halvorsen || +052 0553034554

Re: [GENERAL] Hot standby and xlog on a ramdisk

2016-02-04 Thread Tore Halvorsen
> > On 02/04/2016 09:15 AM, Tore Halvorsen wrote: > > Can a hot standby run correctly with the xlog-files on a ramdisk? > > > > Yes, but, if you lose any, you'll need to rebuild the standby. > > Even if the master and archive contain all the wal files? -- El

[GENERAL] Hot standby and xlog on a ramdisk

2016-02-04 Thread Tore Halvorsen
Hi, Can a hot standby run correctly with the xlog-files on a ramdisk? -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] Tore Halvorsen || +052 0553034554

Re: [GENERAL] Problem with pg_basebackup and streaming replication. (9.2.3 / win64)

2013-04-02 Thread Tore Halvorsen
Ah, this was related to file permissions. The service is running as NETWORK SERVICE, but this user didn't have access to the tablespace-directory. On Mon, Apr 1, 2013 at 3:14 PM, Adrian Klaver wrote: > On 03/31/2013 04:47 PM, Tore Halvorsen wrote: > >> Good idea, but both m

[GENERAL] Problem with pg_basebackup and streaming replication. (9.2.3 / win64)

2013-03-31 Thread Tore Halvorsen
e first slave worked perfectly, but number two just fails with this - any ideas? -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2013 Tore Halvorsen || +052 0553034554

Re: [GENERAL] Getting all entries in a single block with ctid

2012-01-17 Thread Tore Halvorsen
åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2012 Tore Halvorsen || +052 0553034554

Re: [GENERAL] Getting all entries in a single block with ctid

2012-01-17 Thread Tore Halvorsen
ting statements is the key for now... -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2012 Tore Halvorsen || +052 0553034554

Re: [GENERAL] Getting all entries in a single block with ctid

2012-01-16 Thread Tore Halvorsen
d a table is, by checking how must the blocks are shared - so that the worst one can be scheduled for clustering... > But maybe someone will recommend a better solution. > Hopefully - thanks anyway :) -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2012 Tore Halvorsen || +052 0553034554

Re: [GENERAL] Getting all entries in a single block with ctid

2012-01-16 Thread Tore Halvorsen
On Mon, Jan 16, 2012 at 3:20 PM, Tomas Vondra wrote: [...] > > WHERE ctid >= '(123,0)'::tid AND ctid < '(124,0)'::tid > > Ah, forgot a point here - without doing a sequential scan. -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2012 Tore Halvorsen || +052 0553034554

[GENERAL] Getting all entries in a single block with ctid

2012-01-16 Thread Tore Halvorsen
jer mannen fegen og fjåg. [Jøtul] 2012 Tore Halvorsen || +052 0553034554

[GENERAL] Unnaccent dictionary

2011-10-19 Thread Tore Halvorsen
Hi, With postgresql 9.1, the last two entries of unaccent.rules are ё е Ё Е 0xd191 => 0xd0b5 0xd081 => 0xd095 Shouldn't these be translated into 0x45 and 0x65 instead? -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2011 Tore Halvorsen || +052 0553034554

Re: [GENERAL] Relative performance of prefix and suffix string matching

2011-09-23 Thread Tore Halvorsen
n foo_text_idx (cost=0.00..4.55 rows=1 width=0) Index Cond: ((text ~>=~ 'f000'::text) AND (text ~<~ 'f001'::text)) -> Bitmap Index Scan on foo_reverse_idx (cost=0.00..4.55 rows=1 width=0) Index Cond: ((reverse(text) ~>=~ '000f'::text

Re: [GENERAL] Index usage on OR queries

2011-08-31 Thread Tore Halvorsen
ight, but it doesn't use the TIME index. Hmmm, may be my example isn't large enough to produce the issue. -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2011 Tore Halvorsen || +052 0553034554

Re: [GENERAL] Index usage on OR queries

2011-08-31 Thread Tore Halvorsen
;t to the same at all. Now I'm more confused as to how I can optimize the query. -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2011 Tore Halvorsen || +052 0553034554

[GENERAL] Index usage on OR queries

2011-08-31 Thread Tore Halvorsen
I'm just wondering why the optimizer does things the way it does - and if the CTE version is the best way to go... The actual case is slightly more complex and uses more tables - this is mostly a way to find updated data. -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2011 Tore Halvorsen || +052 0553034554

Re: [GENERAL] Using column aliasses in the same query

2011-04-20 Thread Tore Halvorsen
d just written some queries where a shortcut like the above would have made it slighly easier on the eyes and misinterpreted the discussion. -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2011 Tore Halvorsen || +052 0553034554 -- Sent via pgsql-general mailing list (pgsql-gen

Re: [GENERAL] Using column aliasses in the same query

2011-04-18 Thread Tore Halvorsen
l, since there are lots of other ways to do this. -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2011 Tore Halvorsen || +052 0553034554 -- 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] Application Stack Builder and Slony

2011-03-15 Thread Tore Halvorsen
On Tue, Mar 15, 2011 at 12:54 PM, Raymond O'Donnell wrote: > On 15/03/2011 11:41, Tore Halvorsen wrote: >> >> Who maintains the Slony-version that is accessible from Application >> Stack Builder on windows? > > It's maintained by EnterpriseDB as part of the on

[GENERAL] Application Stack Builder and Slony

2011-03-15 Thread Tore Halvorsen
Hi, Who maintains the Slony-version that is accessible from Application Stack Builder on windows? Would be nice to get the version (for pg 8.4) updated to Slony 2.0.6... -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2011 Tore Halvorsen || +052 0553034554 -- Sent via pgsql

Re: [GENERAL] Index on immutable function call

2010-01-19 Thread Tore Halvorsen
NGUAGE 'sql' IMMUTABLE STRICT; CREATE INDEX compare_index ON indexed_table(compare(data1, this_is_a_long_transformation(data2))); SELECT * FROM indexed_table where compare(data1, this_is_a_long_transformation(data2)) in (0, 1); // for greater-equal -- Eld på åren og sol på eng gjer mannen fe

Re: [GENERAL] Index on immutable function call

2010-01-19 Thread Tore Halvorsen
gjer mannen fegen og fjåg. [Jøtul] 2010 Tore Halvorsen || +052 0553034554 -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] pg_stat_statements and slony

2009-10-09 Thread Tore Halvorsen
Hi, Is there a way to exclude all queries from a specific user, or only log queries from a specific user in pg_stat_statements? The slony/replication user fills all the entries more or less immediately. -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2009 Tore Halvorsen

Re: [GENERAL] citext like query and index usage

2009-09-22 Thread Tore Halvorsen
On Tue, Sep 22, 2009 at 8:49 PM, Alvaro Herrera wrote: > Tore Halvorsen escribió: >> Hi, >> >> Is it possible to use an index for like queries on a citext column? >> I'm using pg 8.4.1 on windows - with no changes to the default configuration. >> >> F

[GENERAL] citext like query and index usage

2009-09-22 Thread Tore Halvorsen
(actual time=0.452..0.462 rows=1 loops=1) Index Cond: (citext = '9cb65689f035766eb69ed615afd4'::citext) Total runtime: 0.558 ms So, is there any way to get the like queries to use the index? -- Eld på åren og sol på eng gjer mannen fegen og fjåg. [Jøtul] 2009 Tore