Re: [GENERAL] PG-10 + ICU and abbreviated keys

2017-11-13 Thread Peter Geoghegan
here? Yes, they'll help with that, even though the leading column might be low cardinality. -- Peter Geoghegan -- 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] PG-10 + ICU and abbreviated keys

2017-11-13 Thread Peter Geoghegan
't notice that anything in particular gets faster, because there are many performance enhancements added to a release. -- Peter Geoghegan -- 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] PG-10 + ICU and abbreviated keys

2017-11-13 Thread Peter Geoghegan
On Mon, Nov 13, 2017 at 12:40 PM, Peter Geoghegan <p...@bowt.ie> wrote: >> Do I have to explicitly specify collation when using ORDER by on that column >> for index and abbreviated keys to be used? > > Only if you didn't define the column with a per-column collation

Re: [GENERAL] PG-10 + ICU and abbreviated keys

2017-11-13 Thread Peter Geoghegan
have to explicitly specify collation when using ORDER by on that column > for index and abbreviated keys to be used? Only if you didn't define the column with a per-column collation initially. -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgres

Re: [GENERAL] PG-10 + ICU and abbreviated keys

2017-11-13 Thread Peter Geoghegan
cific locale to > take advantage of abbreviated keys? You need to use an ICU collation. It must be a per-column collation, as you cannot currently use ICU for an entire database. (This limitation should be removed in the next release or two.) -- Peter Geoghegan -- Sent via pgsql-general mail

Re: [GENERAL] gin index trouble

2017-10-30 Thread Peter Geoghegan
.) Of course, what I'd much prefer is a self-contained test case. But if you can't manage that, or if reproducing the issue takes hours, then this simpler experiment might be worthwhile. -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to

Re: [GENERAL] gin index trouble

2017-10-30 Thread Peter Geoghegan
o run on the table rather frequently? -- Peter Geoghegan -- 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] gin index trouble

2017-10-30 Thread Peter Geoghegan
6. My guess is that that commit was insufficient, and that we now continue to see the same mix of symptoms for what is essentially the same bug. [1] https://postgr.es/m/CAH2-WzmtLXbs8+c19t1T=rj0kyp7vk9q8hqjulgdldvmuee...@mail.gmail.com -- Peter Geoghegan -- Sent via pgsql-general mailing lis

Re: [GENERAL] table corruption

2017-10-23 Thread Peter Geoghegan
e most important check here. -- Peter Geoghegan -- 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] table corruption

2017-10-23 Thread Peter Geoghegan
ng the > backup/source data, instead of restoring the whole table? You might find the latest version of amcheck helpful here: https://github.com/petergeoghegan/amcheck It's not really written with repair in mind, since that's such a can of worms, but it might still help you. -- Peter Geoghegan

Re: [GENERAL] could not fdatasync log file: Input/output error

2017-10-17 Thread Peter Geoghegan
take a few more days for the community apt and yum repos to get packages for the new version (both have 1.0 versions as of right now, though). -- Peter Geoghegan -- 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] Merge - Insert Select

2017-10-13 Thread Peter Geoghegan
rio that I have. You can use SELECT instead of VALUES with ON CONFLICT DO NOTHING/ON CONFLICT DO UPDATE. They don't impose any restriction on the INSERT statement at all, unlike MERGE, which is fussy about the use of subqueries. -- Peter Geoghegan -- Sent via pgsql-general mailing list

Re: [GENERAL] startup process stuck in recovery

2017-10-09 Thread Peter Geoghegan
On Mon, Oct 9, 2017 at 12:08 PM, Christophe Pettus <x...@thebuild.com> wrote: > Suggestions on further diagnosis? What's the hot_standy_feedback setting? How about max_standby_archive_delay/max_standby_streaming_delay? -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsq

Re: [GENERAL] startup process stuck in recovery

2017-10-09 Thread Peter Geoghegan
bqx+a4...@mail.gmail.com -- Peter Geoghegan -- 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] Corrupt index

2017-08-15 Thread Peter Geoghegan
g we can. There does seem to be a pattern > related to application business processes but we are at a loss as to how > this could happen. You've given no details at all. What business pattern? What does the index and table look like? -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-

Re: [GENERAL] upsert and update filtering

2017-07-31 Thread Peter Geoghegan
or 112 since col2 is different ? That's quite possible. An ON CONFLICT's UPDATE accepts a WHERE clause, which can reference both existing and excluded tuples. That WHERE clause can back out of the UPDATE based on whatever criteria you like. -- Peter Geoghegan -- Sent via pgsql-general mailin

Re: [GENERAL] upsert: is there a shortcut?

2017-07-28 Thread Peter Geoghegan
ty would go away with the feature you describe. Subtleties like this could easily be missed. -- Peter Geoghegan -- 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] Indexes being ignored after upgrade to 9.5

2017-07-26 Thread Peter Geoghegan
On Wed, Jul 26, 2017 at 2:05 PM, Peter Geoghegan <p...@bowt.ie> wrote: > On Tue, Jul 25, 2017 at 10:34 PM, Nick Brennan <nbrenna...@gmail.com> wrote: >> We've added duplicate indexes and analyzing, however the new indexes are >> still ignored unless we force using

Re: [GENERAL] Strange case of database bloat

2017-07-26 Thread Peter Geoghegan
does it break down, in terms of how much each individual index grows in size? You say that the problem is with both indexes and tables. How much of this is table bloat, and how much is index bloat? Thanks [1] https://postgr.es/m/CAH2-Wz=sfakvmv1x9jh19ej8am8tzn9f-yecips9hrrrqss...@mail.gmail.com

Re: [GENERAL] Indexes being ignored after upgrade to 9.5

2017-07-26 Thread Peter Geoghegan
or did it take a while? Are these unique indexes or not? Do you have a workload with many UPDATEs? I ask all these questions because I think it's possible that this is explained by a regression in 9.5's handling of index bloat, described here: http://postgr.es/m/CAH2-Wz=sfakvmv1x9jh19ej8am8t

Re: [GENERAL] Imperative Query Languages

2017-07-05 Thread Peter Geoghegan
eral problem. Quel wasn't successful because it was only somewhat better than SQL was at the time. This is a conversation that I had a few times when I worked for Heroku, with coworkers that weren't on the database team. They asked similar questions. It took me a while to piece this together. --

Re: [GENERAL] insert on conflict

2017-06-27 Thread Peter Geoghegan
que violation in the joined-on column with MERGE). But, MERGE would be faster for bulk loading, which is what MERGE is good for. -- Peter Geoghegan -- 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] effective_io_concurrency increasing

2017-06-19 Thread Peter Geoghegan
On Mon, Jun 19, 2017 at 4:51 PM, Peter Geoghegan <p...@bowt.ie> wrote: > This would make only the first lookup for each distinct value on the > outer side actually do an index scan on the inner side. I can imagine > the optimization saving certain queries from consuming a lot of mem

Re: [GENERAL] effective_io_concurrency increasing

2017-06-19 Thread Peter Geoghegan
nner side. I can imagine the optimization saving certain queries from consuming a lot of memory bandwidth, as well as saving them from pinning and locking the same buffers repeatedly. -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes

Re: [GENERAL] effective_io_concurrency increasing

2017-06-19 Thread Peter Geoghegan
n is. I can imagine prefetching heap pages mattering a lot less for a primary key index, where there is a strong preexisting correlation between physical and logical order, while also mattering a lot more than what I describe in other cases. I suppose that you need both. -- Peter Geoghegan -- Se

Re: [GENERAL] effective_io_concurrency increasing

2017-06-19 Thread Peter Geoghegan
x scan prefetch is normally implemented. Index scans will on average have a much more random access pattern than what is typical for bitmap heap scans, making this optimization more compelling, so hopefully someone will get around to this. -- Peter Geoghegan -- Sent via pgsql-general mailing list (p

Re: [GENERAL] all serial type was changed to 1

2017-05-01 Thread Peter Geoghegan
ne weeks ago. I checked > and found all tables’ id were reset to 1. I've heard of this happening before. I never determined what the cause was. -- Peter Geoghegan VMware vCenter Server https://www.vmware.com/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To ma

Re: [GENERAL] UPDATE ... ON CONFLICT DO NOTHING

2017-03-14 Thread Peter Geoghegan
t's much harder to back out of an UPDATE than it is to back out of an INSERT. If you're really interested, search through the -hackers archives from around April of 2015. -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your sub

Re: [GENERAL] Avoid sorting when doing an array_agg

2016-12-04 Thread Peter Geoghegan
faster with a high cardinality leading attribute, so this habit works against tuplesort. (Assuming a leading attribute of pass-by-value type, or with abbreviated key support.) -- Peter Geoghegan -- 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] Avoid sorting when doing an array_agg

2016-12-04 Thread Peter Geoghegan
e), it should be possible for the optimizer to determine that it would be just fine to use the C locale, since the user isn't entitled to assume anything about the exact sort order. There are of course cases where this can make a huge difference. -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgs

Re: [GENERAL] SERIALIZABLE and INSERTs with multiple VALUES

2016-10-26 Thread Peter Geoghegan
from a cost/benefit > perspective. What are your thoughts on the back-and-forth between myself and Tom concerning predicate locks within heap_fetch_tuple() path last weekend? I now think that there might be an outstanding concern about ON CONFLICT DO NOTHING + SSI here. -- Peter Geoghegan --

Re: [GENERAL] SERIALIZABLE and INSERTs with multiple VALUES

2016-10-13 Thread Peter Geoghegan
still not even clear on whether you are actually arguing that they are special. (Except, of course, the multi-value case -- that's clearly not okay.) So, with the fix proposed by Thomas applied, will there be any remaining false positives that are qualitatively different to existing false positive cases? And, if s

Re: [GENERAL] SERIALIZABLE and INSERTs with multiple VALUES

2016-10-12 Thread Peter Geoghegan
se transactions with > the same result. I was under the impression that false positives of this kind are allowed by SSI. Why focus on this false positive scenario in particular? -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] SERIALIZABLE and INSERTs with multiple VALUES

2016-10-12 Thread Peter Geoghegan
NSERT/ON > CONFLICT DO NOTHING code to avoid false positives where we can. Do you intend to propose a patch to do that? -- Peter Geoghegan -- 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] SERIALIZABLE and INSERTs with multiple VALUES

2016-10-12 Thread Peter Geoghegan
On Wed, Oct 12, 2016 at 1:41 PM, Kevin Grittner <kgri...@gmail.com> wrote: > Aren't these two completely separate and independent bugs? Technically they are, but they are both isolated to the same small function. Surely it's better to fix them both at once? -- Peter Geoghegan --

Re: [GENERAL] SERIALIZABLE and INSERTs with multiple VALUES

2016-10-12 Thread Peter Geoghegan
doomed transaction. And as you and Vitaly have said, there is > literally no concurrent update. I think that you have the right idea, but we still need to fix that buffer lock bug I mentioned... -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

Re: [GENERAL] SERIALIZABLE and INSERTs with multiple VALUES

2016-10-12 Thread Peter Geoghegan
here is a similar consideration for DO UPDATE. I'm slightly surprised that you're contemplating just ripping the check out. Did I miss something? [1] https://www.postgresql.org/message-id/57ee93c8.8080...@postgrespro.ru -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-ge

Re: [GENERAL] What limits Postgres performance when the whole database lives in cache?

2016-09-02 Thread Peter Geoghegan
ar weaker. What specifically do you say is wrong about his > current claims, and on what facts to you base it? I'm not the one making overarching conclusions. I'm not trying to convince you of anything. -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.or

Re: [GENERAL] What limits Postgres performance when the whole database lives in cache?

2016-09-02 Thread Peter Geoghegan
Yao figured out a technique that made that untrue in 1981, if only barely [1], but the lesson for me was to take his claims in this area with a generous pinch of salt. [1] https://www.cs.cmu.edu/~pavlo/static/papers/stonebraker-ic2e2014.pdf (See his citation 11) -- Peter Geoghegan -- Sent via pgsq

Re: [GENERAL] ON CONFLICT does not support deferrable unique constraints

2016-08-25 Thread Peter Geoghegan
t appears, if you expect UPSERT to worry about lock starvation, "unprincipled deadlocks" [1], and other problems like that. [1] https://wiki.postgresql.org/wiki/Value_locking#.22Unprincipled_Deadlocking.22_and_value_locking -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgs

Re: [GENERAL] Database Architect - Voleon Capital Management LP

2016-07-14 Thread Peter Geoghegan
formance; and support database replication and backup processes. This belongs on the pgsql-jobs mailing list, not pgsql-general. -- Peter Geoghegan -- 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] Upsert with a partial unique index constraint violation

2016-07-11 Thread Peter Geoghegan
: there is no unique or exclusion constraint matching the ON CONFLICT > specification > > If anyone knows what I'm doing wrong and how to get this to work, or knows > that this is not possible to achieve, I'm all ears. That should work. Are you sure you haven't spelled it "...

Re: [GENERAL] Proper relational database?

2016-04-21 Thread Peter Geoghegan
ational algebra in a > scheme-like syntax, and the storage model would be properly relational (eg no > duplicate rows). Have you heard of QUEL? See https://en.wikipedia.org/wiki/QUEL_query_languages -- Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

Re: [GENERAL] ON CONFLICT DO NOTHING RETURNING

2016-03-18 Thread Peter Geoghegan
re > should be a better way. Maybe ON CONFLICT DO SELECT where the select > operates over the target row. Seems reasonable. -- Peter Geoghegan -- 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] Issues with german locale on CentOS 5,6,7

2015-10-07 Thread Peter Geoghegan
o arrange it so that the collations simply never go away, but if that does happen (or if you decide that the changes to a collation matter for cultural or correctness reasons) then you can at least detect the change and recover from it reliably. ICU has some other really nice features, too, bu

Re: [GENERAL] Issues with german locale on CentOS 5,6,7

2015-10-07 Thread Peter Geoghegan
ns? Or are their collations graven on stone tablets, unlike > anyone else's? See my response to Thomas. -- Regards, Peter Geoghegan -- 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] Issues with german locale on CentOS 5,6,7

2015-10-07 Thread Peter Geoghegan
ing pg_upgrade to get on to the first version that happens to have ICU support). I don't like suggesting a solution that I myself am unlikely to find the time to work on, but in the long run that's the only sensible approach IMV. -- Regards, Peter Geoghegan -- Sent via pgsql-general mailin

Re: [GENERAL] Issues with german locale on CentOS 5,6,7

2015-10-07 Thread Peter Geoghegan
ion was superseded by a new version. [1] http://www.postgresql.org/message-id/CAEYLb_UTMgM2V_pP7qnuKZYmTYXoym-zNYVbwoU79=tup8h...@mail.gmail.com -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://

Re: [GENERAL] Issues with german locale on CentOS 5,6,7

2015-10-07 Thread Peter Geoghegan
would be almost as bad as carrying on, because there is no reason to think that the locale thing can easily be rolled back. That was my point, in fact. -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your sub

Re: [GENERAL] Sensitivity to drive failure?

2015-10-02 Thread Peter Geoghegan
I think it would be really handy if temp_tablespaces were made resilient against everything going away in the event of a hard crash. -- Regards, Peter Geoghegan

Re: [GENERAL] Very puzzling sort behavior

2015-09-10 Thread Peter Geoghegan
is often useful. Anyway, based on what you say here, I think you should actually "ORDER BY name_last, name_first". -- Regards, Peter Geoghegan -- 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] Very puzzling sort behavior

2015-09-10 Thread Peter Geoghegan
ring by anyway, so you can just not concatenate the ', ' string (so name_last || name_first), and it will work as you expect, I believe. -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgre

Re: [GENERAL] Weird insert issue

2015-06-27 Thread Peter Geoghegan
UPDATE should be preferred once 9.5 is released. [1] http://www.postgresql.org/docs/9.4/static/plpgsql-control-structures.html#PLPGSQL-UPSERT-EXAMPLE -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] Unicode license compatibility with PostgreSQL license

2015-03-19 Thread Peter Geoghegan
. [1] http://pgeoghegan.blogspot.com/2015/01/abbreviated-keys-exploiting-locality-to.html -- Regards, Peter Geoghegan -- 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] Getting truncated queries from pg_stat_statements

2015-01-19 Thread Peter Geoghegan
. This is fixed in PostgreSQL 9.4, so that query texts can be of virtually unlimited size and still be stored. Otherwise, it depends on your track_activity_query_size setting. -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] Weird CPU utilization patterns with Postgres

2014-12-09 Thread Peter Geoghegan
://commitfest.postgresql.org/action/patch_view?id=1462 -- Regards, Peter Geoghegan -- 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] Weird CPU utilization patterns with Postgres

2014-12-09 Thread Peter Geoghegan
On Tue, Dec 9, 2014 at 5:46 PM, Peter Geoghegan peter.geoghega...@gmail.com wrote: I'm currently trying to fix this across the board [1], but my first suggestion is to try enabling log_temp_files to see if external sorts can be correlated with these stalls. See also: http://www.postgresql.org

Re: [GENERAL] spgist index not getting used

2014-09-24 Thread Peter Geoghegan
On Wed, Sep 24, 2014 at 2:01 PM, Paul Ramsey pram...@cleverelephant.ca wrote: If I build an index on the same table using the internal quad-tree ops, and use their operator, I do get an index scan. What about when enable_seqscan = off? -- Regards, Peter Geoghegan -- Sent via pgsql-general

Re: [GENERAL] unique index on embedded json object

2014-09-21 Thread Peter Geoghegan
a table with products, with a jsonb column, and one row per product, you could then usefully extract at most one SKU per row, and that could work fine. But the structure you present isn't amenable to that. -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] 64-bit TXID?

2014-09-18 Thread Peter Geoghegan
is that they require more storage than 32-bit values. There is a patch floating around that makes it safe to not forcibly safety shutdown the server where currently it is necessary, but it doesn't work by making xids 64-bit. -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] jsonb and comparison operators

2014-09-02 Thread Peter Geoghegan
it be supported? That's a very fuzzy criteria to search on. -- Regards, Peter Geoghegan -- 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] how to query against nested hstore data type

2014-08-24 Thread Peter Geoghegan
On Sun, Aug 24, 2014 at 7:05 PM, Huang, Suya suya.hu...@au.experian.com wrote: It’s my test DB, the version is PostgreSQL 9.4beta2. I’m testing with nested hstore feature. Really? Nested hstore only made it into that version as jsonb, which you're clearly not using here. -- Regards, Peter

Re: [GENERAL] JsonB Gin Index is very large; is there a work around?

2014-08-20 Thread Peter Geoghegan
On Wed, Aug 20, 2014 at 1:53 PM, Larry White ljw1...@gmail.com wrote: Is there anyway to index a subset of the data in a JSONB column? I'm thinking of something like declaring certain paths to be indexed? Yes. See the expression index example in the jsonb documentation. -- Regards, Peter

Re: [GENERAL] The dangers of streaming across versions of glibc: A cautionary tale

2014-08-07 Thread Peter Geoghegan
. This is a problem that is well understood, and anticipated by the Unicode consortium. -- Regards, Peter Geoghegan -- 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] The dangers of streaming across versions of glibc: A cautionary tale

2014-08-06 Thread Peter Geoghegan
that that's a stupid idea. Glibc would be a good start. [1] https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Special-Shell-Variables.html -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription

Re: [GENERAL] The dangers of streaming across versions of glibc: A cautionary tale

2014-08-06 Thread Peter Geoghegan
://wiki.postgresql.org/wiki/Todo:ICU [2] http://userguide.icu-project.org/collation/architecture#TOC-Versioning -- Regards, Peter Geoghegan -- 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] What query currently running within function

2014-07-23 Thread Peter Geoghegan
, such as statements executed within functions are tracked. -- Regards, Peter Geoghegan -- 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] Xlogdump compiling error : undefined reference to `ber_sockbuf_io_udp'

2014-02-09 Thread Peter Geoghegan
On Sun, Feb 9, 2014 at 10:02 PM, Adarsh Sharma eddy.ada...@gmail.com wrote: I need to use xlogdump to analyse my xlog files in postgresql to understand why there are so much xlog generation on Master. Only PostgreSQL is supported. EDB's product is not. -- Regards, Peter Geoghegan -- Sent

Re: [GENERAL] Why is wal_writer_delay limited to 10s?

2014-02-01 Thread Peter Geoghegan
25 -- Regards, Peter Geoghegan -- 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] Why is wal_writer_delay limited to 10s?

2014-02-01 Thread Peter Geoghegan
On Sat, Feb 1, 2014 at 3:48 PM, Peter Geoghegan peter.geoghega...@gmail.com wrote: What Postgres version? The WAL Writer will hibernate on Postgres 9.2+. Of course, it will still write things out at a steady rate if they're there to write. However, there is no reason to think you couldn't change

Re: [GENERAL] Why is wal_writer_delay limited to 10s?

2014-02-01 Thread Peter Geoghegan
back when the delay was passed to pg_usleep(), which was the case in 9.1. -- Regards, Peter Geoghegan -- 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] what checksum algo?

2013-11-13 Thread Peter Geoghegan
On Wed, Nov 13, 2013 at 4:39 PM, Michael Paquier michael.paqu...@gmail.com wrote: CRC16 is used. Actually, subsequently another algorithm was introduced - see commit 43e7a668499b8a69a62cc539a0fbe6983384339c . -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] what checksum algo?

2013-11-13 Thread Peter Geoghegan
this. I think that in general I prefer a uniform distribution, because most often I look to pgbench to satisfy myself that certain types of regressions have not occurred. That's quite a different thing to a representative workload, obviously. -- Regards, Peter Geoghegan -- Sent via pgsql

Re: [GENERAL] Call for design: PostgreSQL mugs

2013-09-06 Thread Peter Geoghegan
define ourselves in terms of what others do and don't do. I hope that isn't true, but if it is I think that MySQL is much less relevant now. -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] Call for design: PostgreSQL mugs

2013-09-03 Thread Peter Geoghegan
. -- Regards, Peter Geoghegan -- 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] PostrgreSQL Commercial restrictions?

2013-08-07 Thread Peter Geoghegan
restriction or limit to do it.? I am not a lawyer and this isn't legal advice. That said, I have ever reason to believe that the licensing is the most liberal practically possible. Distributing Postgres with your proprietary application should not be a problem. -- Regards, Peter Geoghegan

Re: [GENERAL] Read data from WAL

2013-07-15 Thread Peter Geoghegan
://github.com/snaga/xlogdump -- Regards, Peter Geoghegan -- 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] Can't increase shared_buffers for PostgreSQL on openSUSE 12.3

2013-06-14 Thread Peter Geoghegan
On Fri, Jun 14, 2013 at 11:55 AM, Andreas maps...@gmx.net wrote: How can I get more memory for PG on openSUSE 12.3 ? http://www.postgresql.org/docs/9.2/static/kernel-resources.html -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] Age of the WAL?

2013-03-26 Thread Peter Geoghegan
think the version on pgfoundry is unmainted. I'd look here instead: https://github.com/snaga/xlogdump/commits/master -- Regards, Peter Geoghegan -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [GENERAL] Is there any plugin for Nagios, which sends Postgresql ERROR information with SQL query in mail?

2013-01-02 Thread Peter Geoghegan
On 2 January 2013 16:55, AI Rumman rumman...@gmail.com wrote: Is there any plugin for Nagios, which sends Postgresql ERROR information with SQL query in mail? It has nothing to do with Nagious, but tail_n_mail may do what you want here. -- Peter Geoghegan http://www.2ndQuadrant.com

Re: [GENERAL] What happens to a primary key b-tree index when a table tuple is deleted by a transaction?

2012-11-25 Thread Peter Geoghegan
to get away with only having a new row version in tables, and not in each index, if and only if the UPDATE statement only affects non-indexed columns. -- Peter Geoghegan http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- Sent via pgsql-general mailing

Re: [GENERAL] Experiences with pl/Java

2012-11-19 Thread Peter Geoghegan
to do so left me with a very low opinion of pl/java as a project. -- Peter Geoghegan http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] Maintaining state across function calls

2012-11-19 Thread Peter Geoghegan
example of wrapping a C++ library that is liable to throw C++ exceptions within Postgres backend code, in a sane way (that is, avoiding unwinding the stack via longjmp() over a part of the stack where a destructor needs to be called, which is undefined in C++). -- Peter Geoghegan http://www

Re: [GENERAL] Fuzzystrmatch contrib module on RHEL63

2012-11-18 Thread Peter Geoghegan
fuzzystrmatch? I think that you should be able to install it by installing the package postgresql-contrib or similar. -- Peter Geoghegan http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

Re: [GENERAL] Pg isolation levels: 3 or 2?

2012-11-03 Thread Peter Geoghegan
/wiki/Snapshot_isolation -- Peter Geoghegan http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- 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] Why BgWriterDelay is fixed?

2012-10-29 Thread Peter Geoghegan
. -- Peter Geoghegan http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- 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] Access to postgresql query optimizer output

2012-10-29 Thread Peter Geoghegan
, not execution proper. All that appears within the plan tree is a simple Const node in each case, so in that sense the plans are identical. Again, this is a little bit academic for the most part. I highly recommend pretending that the rules system doesn't exist. -- Peter Geoghegan http://www

Re: [GENERAL] Game Server Lags

2012-10-02 Thread Peter Geoghegan
turning off synchronous_commit. Note that this is something that you can do at the transaction granularity, so, for example, if there are financial transactions, they need not make this trade-off. -- Peter Geoghegan http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training

Re: [GENERAL] Postgres error when adding new page

2012-10-01 Thread Peter Geoghegan
for PageAddItem() returning InvalidOffsetNumber. That is usually, though not necessarily, separately available within a WARNING log message, which you haven't included here. Could you please let us know if there is a WARNING that you didn't include just prior to the ERROR? -- Peter Geoghegan

Re: [GENERAL] The semantics of (NULL,NULL) vs NULL

2012-08-02 Thread Peter Geoghegan
/02/what-is-the-deal-with-nulls/ -- Peter Geoghegan http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [GENERAL] I cannot insert bengali character in UTF8

2012-07-20 Thread Peter Geoghegan
an encoding-naive truncation at some point? My mail client cannot display the latter few characters before the ellipsis, but can display the first few fine. -- Peter Geoghegan http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- Sent via pgsql-general

Re: [GENERAL] Help me follow...

2012-07-14 Thread Peter Geoghegan
the commit based on that, try the original reporter's name. We ordinarily credit bug reporters in commit messages that fix the bug. -- Peter Geoghegan http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- Sent via pgsql-general mailing list (pgsql

Re: [GENERAL] Help me follow...

2012-07-14 Thread Peter Geoghegan
=make.git;a=tree;h=refs/heads/f16;hb=f16 It's not immediately obvious which of those might be related, but I think this was a bug in gmake and the fix is in there somewhere. Agreed. Since Fedora 14 is now EOL, I'm not inclined to worry about it. -- Peter Geoghegan http://www.2ndQuadrant.com

Re: [GENERAL] Problem while restoring a database from SQL_ASCII to UTF-8

2012-06-06 Thread Peter Geoghegan
could automagically deduce encoding (albeit often inconclusively) in much the same manor as modern web browsers attempt to when they have no alternative. I don't see much demand for that though. -- Peter Geoghegan       http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training

Re: [GENERAL] [pgeu-general] FOSDEM booth volunteer

2012-01-29 Thread Peter Geoghegan
any (human) language which you are familiar with. There will be a small icon with the language on your badge. I expect to be manning the booth. I speak English. See you there -- Peter Geoghegan       http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services

Re: [GENERAL] any plans to support more rounding methods in sql?

2012-01-24 Thread Peter Geoghegan
, for example. If you require exactly 4 digits of precision, it's possible to use this syntax: NUMERIC(precision, scale) That isn't going to affect the rounding behaviour though. -- Peter Geoghegan       http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- Sent

Re: [GENERAL] Is Synchronous Postgresql Replication Slower Than Asynchronous?

2012-01-20 Thread Peter Geoghegan
of transactions, like financial transactions. -- Peter Geoghegan       http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [GENERAL] Is Synchronous Postgresql Replication Slower Than Asynchronous?

2012-01-20 Thread Peter Geoghegan
..., are you referring specifically to one of these implementations? I refer specifically to the synchronous replication feature that was introduced into PostgreSQL itself, in the current 9.1 release: http://www.postgresql.org/docs/9.1/static/warm-standby.html#SYNCHRONOUS-REPLICATION -- Peter Geoghegan

Re: [GENERAL] ESET NOD32 Antivirus interference with PostgreSQL

2012-01-20 Thread Peter Geoghegan
-virus vendor? -- Peter Geoghegan       http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training and Services -- 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] Is the a magic number for WAL files

2011-12-09 Thread Peter Geoghegan
. You mean something like this?: /* * Each page of XLOG file has a header like this: */ #define XLOG_PAGE_MAGIC 0xD068 /* can be used as WAL version indicator */ Obviously that isn't stable. -- Peter Geoghegan       http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training

  1   2   3   >