Re: [GENERAL] Weird behavior with "sensitive" cursors.

2009-10-01 Thread Alvaro Herrera
ssier). -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support *** src/backend/commands/portalcmds.c 11 Jun 2009 14:48:56 - 1.79 --- src/backend/commands/portalcmds.c 1 Oct 2009 23:24:33

Re: [GENERAL] Weird behavior with "sensitive" cursors.

2009-10-02 Thread Alvaro Herrera
Alvaro Herrera escribió: > > This one really works and includes a basic test case. You were right > that the extra Register was bogus :-( I had to expose CopySnapshot, > which I still don't like but ... (I could have added an extra > Unregister somewhere during portal clos

Re: [GENERAL] Compilate problems

2009-10-04 Thread Alvaro Herrera
ile this way: cc $(pg_config --cflags) -I$(pg_config --includedir)/server -c main.c You need pg_config to be in PATH for this to work. PS: I suggest you use the pgsql-es-ayuda list for spanish help. There's people from @uci.cu there too. -- Alvaro Herrera

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-05 Thread Alvaro Herrera
committed patch touches anything involved in what you're testing, but if you could grab CVS tip from the 8.4 branch (or the snapshot from ftp.postgresql.org:/pub/snapshot/stable/8.4 ) and give it a try, that'd be great. -- Alvaro Herrerahttp://www.CommandP

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Alvaro Herrera
Stuart Bishop wrote: > > > On Mon, Oct 5, 2009 at 11:00 PM, Alvaro Herrera > wrote: > >Stuart Bishop wrote: > >>On Mon, Oct 5, 2009 at 4:22 PM, Alban Hertroys > >> wrote: > > > >>> A similar issue was discussed just recently here: >

Re: [GENERAL] Wishlist of PL/Perl Enhancements for PostgreSQL 8.5

2009-10-06 Thread Alvaro Herrera
ifferent arguments). > > > > The names won’t enable inter-function calling > > Inter-function calling could be handy, too. I agree. This would mean that the function name mangling would have to be more predictable ... maybe using the argument types instead of OID? -- Alvaro H

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Alvaro Herrera
Stuart Bishop wrote: > On Tue, Oct 6, 2009 at 8:28 PM, Alvaro Herrera > wrote: > > mmkay.  So, any luck in constructing a test case? > > Yes. Just no luck getting it sent to the mailing list - seems to > silently drop emails with attachments on me :-P :-( > The test

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Alvaro Herrera
Alvaro Herrera wrote: > Stuart Bishop wrote: > > The test case (invisible.sh) and required dump (foodump.sql - 60k) are > > at http://www.stuartbishop.net/invisible/ > > Got it, thanks, looking. Here's a slightly smaller test case; basically I removed the tsearch2 cruf

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Alvaro Herrera
Alvaro Herrera wrote: > Here's a slightly smaller test case; basically I removed the tsearch2 > cruft and extra columns in the table. One thing of note is that if the > COPY commands is reduced to occupy less than one page in the target > table, the problem does not occur. A

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Alvaro Herrera
se they're obviously no longer necessary. The new regression test that it added still passes with this new patch. I will add a new one for this new problem. (This new patch restores CopySnapshot as a static function too). -- Alvaro Herrerahttp://www.CommandP

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Alvaro Herrera
Alvaro Herrera wrote: > create trigger onetest_t before update on onetest for each row > execute procedure upd(); > > insert into onetest select a, repeat('xyzxz', 100), 'new' from > generate_series(1, 50) a; > > BEGIN; > SET transaction is

Re: [GENERAL] Wishlist of PL/Perl Enhancements for PostgreSQL 8.5

2009-10-06 Thread Alvaro Herrera
s, because the user would have to install the modules separately. Maybe we could have a different language (say plperl2 for lack of a better name) that could work this way; if you really wanted to do this, you could. Having plperl functions as separate files would be great for stuff

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Alvaro Herrera
Alvaro Herrera wrote: > I think the previous patch to snapmgr.c was mistaken. Instead of fixing > a single trouble spot, we're better off fixing PushActiveSnapshot so > that any use of it that involves a snapshot that's subject to a future > command counter update should cre

Re: [GENERAL] attempted to lock invisible tuple - PG 8.4.1

2009-10-06 Thread Alvaro Herrera
x27;d be great. > > I trigger the same error with a freshly built snapshot. If you're up for a bit of patching, please test with the attached patch applied. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Pro

Re: [GENERAL] pg_dumpall asking for password for each database

2009-10-06 Thread Alvaro Herrera
Krzysztof Barlik wrote: > Hi, > > is it possible to force pg_dumpall to ask for > password only once (connecting as superuser 'postgres') ? > > Entering it for every database is a bit annoying. What version are you running? IIRC it should remember the password be

Re: [GENERAL] interface for "non-SQL people"

2009-10-06 Thread Alvaro Herrera
has got a graphical query builder. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- 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] Need help in spi_prepare errors

2009-10-07 Thread Alvaro Herrera
to tell where one ends and the other starts. If you really want two separate lists, you need to pass them as array references (i.e. \...@myarray). I guess you could also pass an element count but that's not very perlish. -- Alvaro Herrerahttp://www.CommandProm

Re: [GENERAL] How to troubleshoot authentication failure?

2009-10-07 Thread Alvaro Herrera
e pg_hba.conf files, same > script parameters, same versions of Postgres, same everything. Maybe you have a .pgpass file storing a password for one of them and not the other? -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom De

Re: [GENERAL] Query inside RTF

2009-10-08 Thread Alvaro Herrera
Leonardo M. Ramé escribió: > select > idturno, > infres::text > from turno > where > infres::text ~~ $$%diagn'f3stico%$$; Just make sure you don't have $$ in the search pattern ... -- Alvaro Herrerahttp://www.C

Re: [GENERAL] How to reduce WAL file Size

2009-10-09 Thread Alvaro Herrera
posted from other three different email addresses. Following the "see this post in context" link at the bottom would show you more, if you care about that sort of stuff. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Cus

Re: [GENERAL] Regexp confusion

2009-10-09 Thread Alvaro Herrera
esn't. See here: http://www.postgresql.org/docs/8.4/static/functions-matching.html#FUNCTIONS-SIMILARTO-REGEXP You probably want to use ~ instead of SIMILAR TO. (SIMILAR TO is a weird beast that the SQL committee came up with, vaguely based on regular expressions.) -- Alvaro Herrera

Re: [GENERAL] transaction ID wraparound - should I use 'VACUUM' or 'VACUUM FULL' ?

2009-10-09 Thread Alvaro Herrera
check using SQL if transaction ID is close to wraparound? See age(datfrozenxid) FROM pg_database, but ignore system databases. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing lis

Re: [GENERAL] Nested transactions

2009-10-12 Thread Alvaro Herrera
point? What can > you do with a subtransaction that you can't do with a savepoint? What Bill wants is an "autonomous" transaction. We don't have those yet (except thru use of dblink or database connections inside a function.) -- Alvaro Herrera

Re: [GENERAL] Cannot start the postgres service

2009-10-14 Thread Alvaro Herrera
d success (exit code 0). -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- 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 8.4 and pg_autovacuum functionality

2009-10-14 Thread Alvaro Herrera
t; finished ? I assume not since no table data is actually being > rewritten. It will block until it is finished (just like any other ALTER TABLE), but unless there's something else blocking the table for a long time, it should be very short. No data is being rewritten. -- Alvaro Herrera

Re: [GENERAL] SFPUG: Video from "Statistics and Postgres -- How the Planner Sees Your Data" Now on Vimeo

2009-10-15 Thread Alvaro Herrera
n't know how they do it but the pgcon 2009 page has links to videos of the presentations that have the slides changing in coordination. It's pretty good. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 2

Re: [GENERAL] pg 8.4 (Auto)-vacuumlo

2009-10-23 Thread Alvaro Herrera
d in any user table. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- 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 check whether a data type can be cast to another

2009-10-23 Thread Alvaro Herrera
_VALUE_FOR_CAST. Would > that be the exception to catch? It doesn't sound right. TIAS -- http://www.fetter.org/tias.html -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgs

Re: [GENERAL] Can the string literal syntax for function definitions please be dropped ?

2009-10-25 Thread Alvaro Herrera
for functions, none of them mandated by SQL, and there is no reason to create a syntax exception for any of them. I am sure that when we get SQL/PSM support, the interest in getting standards-conformant procedure creation statements is going to get a lot higher. PL/pgSQL is not SQL/PSM. --

Re: [GENERAL] Can the string literal syntax for function definitions please be dropped ?

2009-10-25 Thread Alvaro Herrera
tail the differences you talk about that you see here ? I'm not that familiar with SQL/PSM, sorry. Pavel Stehule is da man. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via p

Re: [GENERAL] Can the string literal syntax for function definitions please be dropped ?

2009-10-25 Thread Alvaro Herrera
Timothy Madden escribió: > On Mon, Oct 26, 2009 at 12:42 AM, Alvaro Herrera > wrote: > > > Timothy Madden escribió: > > > > > Anyway Posgres offers a CREATE FUNCTION statement that resembles > > > or should resemble that in the standard, and that is what I

Re: [GENERAL] cursor MOVE vs OFFSET in SELECT

2009-10-26 Thread Alvaro Herrera
/LIMIT. Afaik cursor always fetches everything. > > Well, in my experiments they always perform the same. I suspect that > the way SELECT/OFFSET is implemented is not much different than > cursor/MOVE. The cursor could choose a different plan due to the "fast

Re: [GENERAL] Why does pg_dump set default_with_oids to true?

2009-10-26 Thread Alvaro Herrera
ve any explicit setting of this parameter. > > The documentation deprecates setting this variable to true. Why does > pg_dump do it? To dump tables that were created WITH OIDS. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Co

Re: [GENERAL] How to list user-specific configuration parameters?

2009-10-26 Thread Alvaro Herrera
Tim Landscheidt wrote: > Hi, > > how can I list the user-specific configuration parameters, > i. e. those set by "ALTER ROLE name SET ..."? Get them from the pg_authid catalog. 8.5 alpha2 has a new \drds command in psql for that purpose. -- Alvaro Herrera

Re: [GENERAL] Implementing Frontend/Backend Protocol TCP/IP

2009-10-26 Thread Alvaro Herrera
Raimon Fernandez wrote: > > > Hello, > > > I'm trying to implement the front-end protocol with TCP from > REALbasic to PostgreSQL. That sounds the most difficult way to do it. Can't you just embed libpq? -- Alvaro Herrera

Re: [GENERAL] Implementing Frontend/Backend Protocol TCP/IP

2009-10-27 Thread Alvaro Herrera
it will be MUCH easier/ cheaper to do than working with the FE/BE protocol yourself. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-general@postgresql.

Re: [GENERAL] Implementing Frontend/Backend Protocol TCP/IP

2009-10-27 Thread Alvaro Herrera
ause the length is an int32. There are 3 zeros because the packet length is less than 256. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-general@

Re: [GENERAL] Implementing Frontend/Backend Protocol TCP/IP

2009-10-27 Thread Alvaro Herrera
t; Int32 > Length of message contents in bytes, including self. > String > The name of the run-time parameter being reported. > String > The current value of the parameter. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command

Re: [GENERAL] Implementing Frontend/Backend Protocol TCP/IP

2009-10-27 Thread Alvaro Herrera
Raimon Fernandez wrote: > how I know where the length ends ? You count 4 bytes. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make chan

Re: [GENERAL] auto truncate/vacuum full

2009-10-27 Thread Alvaro Herrera
s has anything to do with your old TRUNCATE either. My guess is that somebody else ran TRUNCATE and forgot to tell you; or maybe an automatic external process (cron or some such). -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Cons

Re: [GENERAL] auto truncate/vacuum full

2009-10-27 Thread Alvaro Herrera
Pavel Stehule escribió: > 2009/10/27 Alvaro Herrera : > > JC Praud escribió: > > > >> So my question are: can the autovacuum daemon perform vacuum full ? Or > >> another internal postgres process ? Could it come from the TRUNCATE I run > >> and canceled 4

Re: [GENERAL] how to identify outliers

2009-10-27 Thread Alvaro Herrera
Rhys A.D. Stewart escribió: > i did some seraching about outliers and most of hits are about R or > spss or some other statistical package.so looking for a way to do > it wholly in pgsql. Well, then, maybe PL/R? -- Alvaro Herrerahttp://www.CommandP

Re: [GENERAL] auto truncate/vacuum full

2009-10-27 Thread Alvaro Herrera
t have, so what you describe is what we would expect. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] auto truncate/vacuum full

2009-10-28 Thread Alvaro Herrera
JC Praud escribió: > On Wed, Oct 28, 2009 at 12:29 AM, Alvaro Herrera > This bit does not make much sense to me. A transaction waiting will not > > show up in the log. Were they cancelled? Can you paste an extract from > > the log? > > No, the transactions were not ca

Re: [GENERAL] Has anyone seen this while running pg_dumpall?

2009-10-28 Thread Alvaro Herrera
. This is not a Postgres error message. Ask EDB. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your sub

Re: [GENERAL] Postgres alpha testing docs and general test packs

2009-10-28 Thread Alvaro Herrera
overloaded already (or have other reasons not to). -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.pos

Re: [GENERAL] Can't connect

2009-10-29 Thread Alvaro Herrera
dly fixed in 8.3.8. Update and let us know if it reocurrs. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make cha

Re: [GENERAL] Absolute value of intervals

2009-10-30 Thread Alvaro Herrera
Sam Mason wrote: > + Datum > + interval_abs(PG_FUNCTION_ARGS) > + { > + Interval *interval1 = PG_GETARG_INTERVAL_P(0); > + Interval *interval2 = PG_GETARG_INTERVAL_P(1); Surely it must receive a single argument? -- Alvaro Herrera

Re: [GENERAL] pg_catalog question: Sequence attributes.

2013-09-04 Thread Alvaro Herrera
Raphael Araújo e Silva escribió: > My doubt: Is there some way to get all sequences attributes at once > without execute repeatedly SELECT * FROM [sequence_name]? I don't think there is, yet. > Also, I'm wondering if there is some way to resolve a sequence OID into > it's real representation. L

Re: [GENERAL] Making substrings uppercase

2013-09-09 Thread Alvaro Herrera
Oliver Kohll - Mailing Lists wrote: > Hello, > > Given a string with certain words surrounded by stars, e.g. > > The *quick* *brown* fox jumped over the *lazy* dog > > can you transform the words surrounded by stars with uppercase versions, i.e. Maybe you can turn that into a resultset, then upp

Re: [GENERAL] reading cvs logs with pgadmin queries

2013-09-23 Thread Alvaro Herrera
Dave Cramer escribió: > OK, > > I have a little more information. > > Yes, in isolation I can import these lines, however something happens after > 69000 lines. These lines cause an error. Stray quotes in previous lines? Perhaps check whether line 65999 was imported correctly. -- Álvaro Herre

Re: [GENERAL] pgbench

2013-10-03 Thread Alvaro Herrera
Giuseppe Broccolo wrote: > The format of the script file has to be one SQL command per line; > multiline SQL commands are not supported, and empty lines are > ignored. This could bring to errors. Could this be your case? Multiline SQL commands are not supported? Well that sucks, because only BUF

Re: [GENERAL] Reasons to reorder results *within* a transaction?

2013-10-04 Thread Alvaro Herrera
Evan Jones wrote: > I *know* that without an ORDER BY clause, the database is free to > reorder results in any way it likes. However, I recently ran into a > case where the *SAME* query was returning results in a different order > *within* a single transaction, which surprised me (we fixed it by >

Re: [GENERAL] Please stop sending me those e-mails

2013-10-07 Thread Alvaro Herrera
On Mon, Oct 07, 2013 at 09:33:44AM +, Françoise Singer wrote: > Dear Sirs, > > Could you please take my e-mail adress out of your conversations? Hi, I don't see this address (francoise.sin...@amma.be) subscribed to pgsql-general@postgresql.org, but I do see singer.franco...@medicalservices.b

Re: [GENERAL] postgresql9.1.6 core dump

2013-10-11 Thread Alvaro Herrera
Adrian Klaver escribió: > On 10/11/2013 03:51 AM, hiroyuki shiga wrote: > >Thank you for reply. > > > >but I can't provide a self-contained test case. > > > > So what are you doing when you get the core dump? The query is in the backtrace: SELECT PATH, COUNT(SITE_ID) FROM ACCESS_LOG_05 WHER

Re: [GENERAL] include all the postgres libraries (C)

2013-11-22 Thread Alvaro Herrera
Janek Sendrowski wrote: > Hi, >   > I like to try some things with C and I need certain postgres libraries for it. > This time, I'm including postgres.h for example, but postgres.h doesn't > include it's files. > How do I include the whole tree, or is there a certain directory I can use. > I just

Re: [GENERAL] pg_xlog is getting bigger

2013-11-25 Thread Alvaro Herrera
Pankaj Mishra escribió: > Dera Kevin, > > If you run checkpoint in database then you can delete the pg_xlog other > then current timestamp. We do this to our customer on regular basis when > pg_xlog exceed more then 15 gb That is "somewhat" correct (meaning you are less likely to see data corrupt

Re: [GENERAL] AccessShareLock and Resource Contention

2013-11-26 Thread Alvaro Herrera
> On Tue, Nov 26, 2013 at 12:41 PM, wrote: > > > I have a 9.2 server that occasionally becomes CPU bound. Disk wait is > > nominal and there's no memory pressure. The workload is almost all reads > > and the cache hit rate is high. Maybe you'd benefit from something like the patch proposed here

Re: [GENERAL] Mismatched pg_class.reltuples between table and primary key

2013-12-02 Thread Alvaro Herrera
bricklen escribió: > We recently experienced a hard crash of a dev server due to lack of > resources (we think, still investigating). > That resulted in an interesting scenario where one of the tables was > returning 12 rows from "select * from tbl", but "select * from tbl order by > " was only ret

Re: [GENERAL] postgres for disconnected environment

2013-12-30 Thread Alvaro Herrera
Joey Quinn escribió: > Most of the installations I have seen reach out to the Internet during the > process. How hard is it to build a Postgres installation in a completely > isolated environment? I have an internal network with not Internet > connectivity that I would like to set up Postgres on.

Re: [GENERAL] PGSYSCONFDIR?

2014-01-14 Thread Alvaro Herrera
John Sutton escribió: > As a last resort (which surely shouldn’t be necessary) on the Ubuntu system I > did: > > strings /usr/bin/psql | grep -i sysconf > > $ENV{'PGSYSCONFDIR'} = '/etc/postgresql-common' if !$ENV{'PGSYSCONFDIR’}; > > So that’s where it needs to be: /etc/postgresql-common/psql

Re: [GENERAL] problem with grant all privileges

2014-01-28 Thread Alvaro Herrera
Bruce Momjian escribió: > On Mon, Jan 27, 2014 at 07:48:33PM -0500, Tom Lane wrote: > > Susan Cassidy writes: > > > This is 9.2 > > > > I'd bet a very good dinner that it isn't --- maybe your psql is, > > but your server has to be pre-9.0. Try "select version();" to > > see the actual version of

Re: [GENERAL] Large objects and savepoints - Snapshot reference leak

2014-01-31 Thread Alvaro Herrera
Andreas Lubensky wrote: > Hi, > > I'm trying to read/write large objects via libpq. I encapsulated the > operations in a transaction but I wanted to put a savepoint before doing > any operations, so I can do a rollback in case anything fails without > breaking the current transaction. Now, when st

Re: [GENERAL] Drop all overloads of a function without knowing parameter types

2014-02-04 Thread Alvaro Herrera
Sergey Konoplev escribió: > On Mon, Feb 3, 2014 at 10:09 AM, Tom Lane wrote: > > People periodically ask for extensions flavored more or less like this, > > but I'm suspicious of building any such thing into the core. There's too > > little commonality in the exact conditions they want to search

Re: [GENERAL] Drop all overloads of a function without knowing parameter types

2014-02-04 Thread Alvaro Herrera
Sergey Konoplev escribió: > >> I understand the POV of both Evan and you here. However, I think that > >> there might be a good solution for this particular case - to allow > >> dropping functions by name only if it has the only signature, but if > >> there are 2 or more signatures then print an e

Re: [GENERAL] The timezone oddities

2014-02-04 Thread Alvaro Herrera
Sergey Konoplev escribió: > Hi, > > Gentoo Linux, PostgreSQL 9.2.4. > > I'm trying to find out why postgres uses a specific time zone that I > don't expect to be used, and without any success so far. The situation > seems strange to me, but I could probably miss something. As far as I know, GMT

Re: [GENERAL] pg_test_fsync: "Invalid argument" in the middle of a test

2014-02-12 Thread Alvaro Herrera
Bruce Momjian wrote: > On Tue, Feb 11, 2014 at 01:28:01AM +0200, Marti Raudsepp wrote: > > On Tue, Feb 11, 2014 at 12:20 AM, Marti Raudsepp wrote: > > > This is on Ubuntu 13.10 (kernel 3.11) with XFS (mount ed with noatime, > > > no other customizations). > > > > I managed to track this down; XFS

Re: [GENERAL] Xlogdump compiling error : undefined reference to `ber_sockbuf_io_udp'

2014-02-13 Thread Alvaro Herrera
Adarsh Sharma escribió: > [cur:1835/26FAFEF8, xid:471303469, rmid:11(Btree), len/tot_len:18/5754, > info:8, prev:1835/26FAFEB0] insert_leaf: s/d/r:1663/1228184/1363155 tid > 28366/20 > Is dere any document where i can co-relate this tid with relations/indexes > in the database. I tried but not

Re: [GENERAL] Cancelling of autovacuums considered harmful

2014-02-26 Thread Alvaro Herrera
Scott Marlowe escribió: > As some of you folks know I work on some pretty beefy machines. Some > of these machines don't see rest for months or days on end. And > autovacuum keeps cancelling. I set it more aggressive, it still never > finishes. No matter how heavily updated, regular activity shoul

Re: [GENERAL] documentation bug

2014-02-27 Thread Alvaro Herrera
James Harper wrote: > Just a minor bug in the documentation - > http://www.postgresql.org/docs/9.3/static/bgworker.html says that bgw_main > takes an argument of void*, but when declared as such gcc -Wall gives a > warning of: > > init.c:59:19: warning: assignment from incompatible pointer type

Re: [GENERAL] Replacing Ordinal Suffixes

2014-03-01 Thread Alvaro Herrera
George Weaver wrote: > Hi Ian, > > I just got that as well - awesome! http://xkcd.com/1313/ -- Álvaro Herrerahttp://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make ch

Re: [GENERAL] Mysterious DB reset

2014-03-05 Thread Alvaro Herrera
Israel Brewster wrote: > So my question is, aside from someone going in and mucking about in the wee > hours of the morning, what could possibly cause this behavior? What sort of > event could cause all data to be deleted from the table, and the sequence to > be reset? Especially while there is

Re: [GENERAL] New here: trouble getting postgres 9.3 running as service on windows 8.1

2014-03-12 Thread Alvaro Herrera
Malik Rumi escribió: Hello list, > I overcame the first errors I got about the TEMP environmental variable > thanks to the info on the wiki. Then I got two warnings after install. 1) > is that the adminpack did not install, and it asked if I was listening on > the port. 2) was that I needed to c

Re: [GENERAL] High Level Committers Wanted

2014-03-19 Thread Alvaro Herrera
Andy Colson escribió: > I dunno. I'm new at conspiracy theories :-). I hoped, by some > stretch, Oracle was feeling the heat of competition from PG ... and > decided to "solve" the problem. See? If Oracle decided to solve the problem in these ways, I'm pretty sure they would already have many

Re: [GENERAL] spi in bgworker

2014-03-22 Thread Alvaro Herrera
James Harper wrote: > The docs say I'm supposed to call BackgroundWorkerInitializeConnection in a > bgworker and then I can start using spi functions, but they aren't clear on > if I should call SPI_connect too. > > If I call BackgroundWorkerInitializeConnection and then SPI_execute I get a > r

Re: [GENERAL] Thousands of errors...what happened?

2014-03-24 Thread Alvaro Herrera
Jerry Levan wrote: > The other day I attempted to connect to my 9.3.2 postgresql data base and my > connection > attempts kept failing. > > I found about 10 lines in the log file that looked like: > > ERROR: could not seek to end of file "global/12292": Too many open files > LOG: out of fi

Re: [GENERAL] PgAdmin errors

2014-03-26 Thread Alvaro Herrera
Hall, Samuel L (Sam) wrote: > ERROR: syntax error at or near "LIKE" > LINE 2: CREATE TABLE tse_history_old (LIKE tse_history) > > ^ Note it says this is on line 2. What have you got in the previous line? (psql has \p

Re: [GENERAL] char array overhead

2014-03-31 Thread Alvaro Herrera
Rob Sargent wrote: > Jsyk, I'm toying with a rather large number of small valued > datapoints per sample. I'm tying text and smallint as well. You could try "char"[] ... -- Álvaro Herrerahttp://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --

Re: [GENERAL] Wanted: ALTER TRIGGER ... OWNED BY EXTENSION

2014-03-31 Thread Alvaro Herrera
Moshe Jacobson wrote: > Even though I mark the trigger *functions *as owned by my extension, the > trigger definitions themselves are still dumped by pg_dump and restored by > pg_restore. This is a problem when pg_restore is using parallelism (-j), > and one thread starts issuing CREATE TRIGGER co

Re: [GENERAL] Table Vacuum Taking a Long Time

2014-04-02 Thread Alvaro Herrera
Eliot Gable wrote: > I have a table which is about 12 GB in size. It has had a vacuum full > analyze run on it, and then immediately after, I run vacuum analyze and it > takes about 90 seconds to complete. If I continue to run vacuum analyze on > it, it continues to take about 90 seconds each time.

Re: [GENERAL] Question about isolation level documentation

2014-04-08 Thread Alvaro Herrera
Elliot S wrote: > Is there a discussion somewhere regarding this line from the docs on > transaction isolation: "When you select the level Read Uncommitted > you really get Read Committed, and phantom reads are not possible in > the PostgreSQL implementation of Repeatable Read"? I get that RU is >

Re: [DOCS] [GENERAL] About upgrading a (tuple?) lock in a rollback'd sub-transaction

2014-04-10 Thread Alvaro Herrera
Amit Langote wrote: > On Thu, Apr 10, 2014 at 10:25 PM, Rob Sargent wrote: > > And it also tells you how to stop it --bibtex iirc > > Yeah, it's a caution against a potentially harmful usage anyway. Users > should not use it at all. > > I was just wondering if the description of the behavior, th

Re: [GENERAL] Heartbleed Impact

2014-04-16 Thread Alvaro Herrera
Dev Kumkar wrote: > > of which OpenSSL package versions' libssl.1.0.0.so is available at > > http://www.enterprisedb.com/products-services-training/pgbindownload ? > > > > Ok, looked at the STRINGS versions and the "OpenSSL 1.0.1f 6 Jan 2014" is > seen. > > Please let me know if the new binary i

Re: [GENERAL] Request for Unsubscribe

2014-04-24 Thread Alvaro Herrera
Amit Langote wrote: > On Thursday, April 24, 2014, Bhim Kumar wrote: > > > Hi sir, > > > > I am getting a lot of mails which are tough to handle. > > > > Please unsubscribe my mail id, so that I would not get unwanted mail. > > Use the subscribe/unsubscribe form here. > > http://www.postgresql.

Re: [GENERAL] Got Associate Certification, what can i do or what i will going to receive?

2014-04-24 Thread Alvaro Herrera
Adrian Klaver wrote: > On 04/24/2014 07:10 AM, Oscar Calderon wrote: > >Hi Adrian thanks for your answer, and yees, you're right, is just that i > >haven't received an answer from them yet, that's why i sent this email > >to the mail list. > > The important thing to understand here is that the Pos

Re: [GENERAL] envelope/postage announcement

2014-05-05 Thread Alvaro Herrera
Tim Clarke wrote: > Michael Tocci kindly announced these packages recently and they sound > promising but my search-fu is failing me - anyone got a link please? http://www.3comets.com/ I posted a reply to his announce but now I see it didn't make it through the list because I used the owner addre

Re: [GENERAL] 8.4 -> 9.1 : ANALYSE VERBOSE; -> out of shared memory

2014-05-12 Thread Alvaro Herrera
Souquieres Adam wrote: > The solution must be to define a *better strategy for tables > statistics*... we dont really need stats on all the tables because > the most part of them is static... Tune autovacuum so that it does the analyses for you? -- Álvaro Herrerahttp://www.2ndQu

Re: [GENERAL] Adding a not null constraint faster

2014-05-17 Thread Alvaro Herrera
Joe Van Dyk wrote: > Is there a way to add a NOT NULL constraint to a column without having > to lock the table while a sequential read happens? > > Seems like it should be possible to add an index on the column for > null values, like: > create index on t using btree(col_name) where col_name is n

Re: [GENERAL] Force specific index disuse

2014-05-20 Thread Alvaro Herrera
Steve Crawford wrote: > Is there a way to force a specific index to be removed from > consideration in planning a single query? > > Specifically, on a 60-million-row table I have an index that is a > candidate for removal. I have identified the sets of nightly queries > that use the index but befo

Re: [GENERAL] Force specific index disuse

2014-05-20 Thread Alvaro Herrera
Steve Crawford wrote: > On 05/20/2014 10:44 AM, Alvaro Herrera wrote: > >If you can afford to lock the table for a while, the easiest is > > > >BEGIN; > >DROP INDEX bothersome_idx; > >EXPLAIN your_query; > >ROLLBACK; > > > Interesting. But what do

Re: [GENERAL] Force specific index disuse

2014-05-20 Thread Alvaro Herrera
Jeff Janes wrote: > Best case, 'A while' means however long it takes the explain (possibly > analyze) to run, and for you to then type 'rollback;' > > worse case, someone else is already holding an incompatible lock (i.e. any > lock) on the table, and is going to hang on to it for a long while, s

Re: [GENERAL] [HACKERS] Mailsystem maintenance/migration announcement

2012-08-10 Thread Alvaro Herrera
Excerpts from Stefan Kaltenbrunner's message of lun ago 06 13:21:49 -0400 2012: > We are currently planning to finalize the ongoing work on the mailsystem > migration we started earlier this year by migrating the > two remaining components of the postgresql.org mailsystem infrastructure > to new s

Re: [GENERAL] Expensive log_line_prefix ?

2012-10-11 Thread Alvaro Herrera
Tom Lane escribió: > Sergey Konoplev writes: > > On Thu, Oct 11, 2012 at 12:19 PM, Sahagian, David > > wrote: > >> Are there any "extra" costs to logging all this cool stuff ? > >> > >> log_line_prefix = '%m %a %u %p %c %m %v %x' > > > The formatting cost only but it is so insignificant that do

Re: [GENERAL] Improve MMO Game Performance

2012-10-18 Thread Alvaro Herrera
Albe Laurenz wrote: > Arvind Singh wrote: > > Are there any particular settings or methods available to improve Just > insert_table operations > > The obvious ones: > - Wrap several of them in a transaction. > - Increase checkpoint_segments. > - Set fsync=off and hope you don't crash. I think it

Re: [GENERAL] Improve MMO Game Performance

2012-10-19 Thread Alvaro Herrera
Arvind Singh wrote: > > ok, > > thanks i will look into walbuffers > > asynchronous_commit=off is a doubt for responsive environment (pg manual). > for ex. > > would it help if, > > a game player , has to perform next move on basis of his/her previous move > plus other players move. > al

Re: [GENERAL] [pgsql-es-ayuda] como exportar separado por comas una tabla grande

2012-10-24 Thread Alvaro Herrera
> > data=# \o /tmp/datos_para_proceso.csv > > data=# select * from datos_para_proceso; > > /opt/PostgreSQL/9.2/bin/psql: lí­nea 30: 9608 Terminado (killed) > > LD_PRELOAD=$PLL LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PG_BIN_PATH/../lib > > "$PG_BIN_PATH/psql.bin" "$@" Moshe Jacobson escribió: > More i

Re: [GENERAL] Disable autovacuum on specific tables

2012-10-24 Thread Alvaro Herrera
Eliot Gable escribió: > In general, autovacuum seems to work well on most of the tables I deal > with. However, in a couple of specific cases, it seems to fail miserably. I > would like to switch to manual vacuuming on those tables and disable > auto-vacuuming for those tables alone. Is this possib

Re: [GENERAL] Disable autovacuum on specific tables

2012-10-24 Thread Alvaro Herrera
Shaun Thomas escribió: > On 10/24/2012 02:57 PM, Eliot Gable wrote: > > >In general, autovacuum seems to work well on most of the tables I deal > >with. However, in a couple of specific cases, it seems to fail > >miserably. I would like to switch to manual vacuuming on those tables > >and disable

Re: [GENERAL] Autovacuum Launcher Process Exception

2012-10-30 Thread Alvaro Herrera
elli...@cpi.com wrote: > Hello, > > I have been running PostgreSQL for many months and just recently started > getting this exception upon start up. Does anyone know what the issue > might be? > > LOG: database system is ready to accept connections > LOG: autovacuum launcher started > LOG:

Re: [GENERAL] Comparing txid_current() to xmin

2012-11-06 Thread Alvaro Herrera
Mike Lewis escribió: > I am trying to make a trigger that updates a row once and only once per > transaction (even if this trigger gets fired multiple times). The general > idea is that for a user we have a version number. When we modify the > user's data, the version number is incremented then s

<    5   6   7   8   9   10   11   12   13   14   >