Re: [GENERAL] Reindex does not finish 8.2.6

2008-03-14 Thread Alvaro Herrera
Clodoaldo escribió: > 2008/3/14, Alvaro Herrera <[EMAIL PROTECTED]>: > > A quick look into pg_locks should tell you if it's blocking. > > pg_prepared_xacts is empty and pg_locks has 288 rows: > > # select locktype, mode, count(*) as total > from pg_locks gro

Re: [GENERAL] postgre vs MySQL

2008-03-14 Thread Alvaro Herrera
ey preprocess a different repository in order to create an obfuscated GPL source tree. (I have a memory of comments in the source that looked like it referred to some internal knowledge base or bug tracking system. But frankly it is a dim memory and could very well be related to the PHP source o

Re: [GENERAL] LOCK TABLE HELP

2008-03-14 Thread Alvaro Herrera
all methods and functions). Have I to Lock the table, perform some > operation on this table, and unlock the table all in the same function > scope? What do you mean it doesn't work? How exactly it fails? If anything, I'd suggest to send the LOCK TABLE in a separate PQexec() c

Re: [GENERAL] postgre vs MySQL

2008-03-14 Thread Alvaro Herrera
Steve Crawford escribió: > Alvaro Herrera wrote: >> Also, it is MVCC-safe only from 8.3 upwards; on older versions >> it (incorrectly) deletes dead tuples that are still visible to old >> transactions. > > More interesting. I may have a broken mental-model. I *thought

Re: [GENERAL] LOCK TABLE HELP

2008-03-17 Thread Alvaro Herrera
somebody already holds the lock, so your LOCK TABLE is just waiting for the holder to release it ... Have a look around the pg_locks view. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -

Re: [GENERAL] shared memory/max_locks_per_transaction error

2008-03-17 Thread Alvaro Herrera
s how much shared memory the server will use. -- 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

Re: [GENERAL] dynamically generated SQL and planner/performance

2008-03-22 Thread Alvaro Herrera
/pgSQL does no caching at all for that query, and asks the planner for a new plan each time. Also, new in 8.3 is a facility for "plan invalidation", which means that every time the server executes something that makes that plan stale, the cache is dropped and the plan is rebuilt next time

Re: [GENERAL] dynamically generated SQL and planner/performance

2008-03-22 Thread Alvaro Herrera
's something like > execute select res fron functionB() into _res; > since the "complicated" part is inside each functionB I shouldn't > expect any great loss. > > Is it? Correct -- the part that's being discarded each time here is the SELECT that

Re: [GENERAL] MySQL to Postgres question

2008-03-22 Thread Alvaro Herrera
to a column after creation created issues, versus using the > serial type which did not. He is wrong in that you *can* attach the same information that SERIAL does if you use ALTER SEQUENCE .. OWNED BY after the fact. If you don't, then he's right. pg_dump d

Re: [GENERAL] INFINITE RECURSION with rules...

2008-03-23 Thread Alvaro Herrera
srdjan wrote: > /* > *My goal is to calculate and insert automatically the value of "tot" > when I insert a row into table b.* > */ Use a trigger. It's a lot simpler. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Repl

Re: [GENERAL] Checking if Aggregate exists

2008-03-24 Thread Alvaro Herrera
e argument type(s) as well. -- 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] postgresql is slow with larger table even it is in RAM

2008-03-25 Thread Alvaro Herrera
Please stop reposting your questions to multiple groups. Since all your questions are about performance, please stick to the pgsql-performance list. Posting to pgsql-sql is not really appropriate, and in pgsql-admin you're totally off-topic. -- Alvaro He

Re: [GENERAL] Reindex does not finish 8.2.6

2008-03-26 Thread Alvaro Herrera
8.0 I'm not sure. Was this issue solved? -- 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.p

Re: [GENERAL] Survey: renaming/removing script binaries (createdb, createuser...)

2008-03-26 Thread Alvaro Herrera
o do. > Perhaps something like changing "postmaster" to "postgresqld", It is already called "postgres" on newer versions. > "pg_ctl" to "safe_postgresqld", Now that's plain weird. -- Alvaro Herrerahttp://w

Re: [GENERAL] PostgreSQL Replication with read-only access to standby DB

2008-03-26 Thread Alvaro Herrera
ch were a step towards that goal. (The point here is that a hot standby needs to be able to execute readonly transactions.) -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-

Re: [GENERAL] page is uninitialized --- fixing

2008-03-26 Thread Alvaro Herrera
> > That sort of looks like it could be data loss, can someone explain what > happened? It means someone extended the table, but didn't get around to actually putting tuples on it and committing. Four transactions were doing this when the system crashed. No co

Re: [GENERAL] Survey: renaming/removing script binaries (createdb, createuser...)

2008-03-26 Thread Alvaro Herrera
xec them. > If we are OK with restricting the scope of the "pg" program to > client-side functionality, then there's no problem. Perhaps we can put the server-side functionality on pg_ctl. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The Postgr

Re: [GENERAL] Survey: renaming/removing script binaries (createdb, createuser...)

2008-03-26 Thread Alvaro Herrera
e it conflicts with pg_ctl on 4 chars before presenting a useful tab completion on the shell. Sadly, pg is already taken so we would need to find an alternative. Also I would vote for less verbose names -- pg vacuumdb, etc, and not "pg database vacuum". -- Alvaro Herrera

Re: [GENERAL] page is uninitialized --- fixing

2008-03-27 Thread Alvaro Herrera
were all > > contiguous though. Do you know that this table was under heavy insert > > load at the time? > > It was. This table is an insert only log table that was being heavily > was being heavily written to at the time of the crash. Is it possible

Re: [GENERAL] Survey: renaming/removing script binaries (createdb, createuser...)

2008-03-27 Thread Alvaro Herrera
Greg Smith wrote: > And if anybody suggests putting a "_" in something I have to type all the > time, I will stick my fingers in my ears and start yelling until they > stop. Bad enough I have to type pg_ctl a few times every day now. alias pgctl=pg_ctl

Re: [GENERAL] Survey: renaming/removing script binaries (createdb, createuser...)

2008-03-27 Thread Alvaro Herrera
Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > Greg Smith wrote: > >> And if anybody suggests putting a "_" in something I have to type all the > >> time, I will stick my fingers in my ears and start yelling until they > >>

Re: [GENERAL] Survey: renaming/removing script binaries (createdb, createuser...)

2008-03-27 Thread Alvaro Herrera
Zdenek Kotala wrote: > And what about two commands one for create and one for drop? > It save 6 or 4 chars. > > pgc db (as create db) > pgc user > pgd db (as drop db) > pgd user Well, there are things besides create and drop -- for example vacuum

Re: [GENERAL] Survey: renaming/removing script binaries (createdb, createuser...)

2008-03-27 Thread Alvaro Herrera
Dawid Kuroczko escribió: > On Thu, Mar 27, 2008 at 11:49 PM, Greg Smith <[EMAIL PROTECTED]> wrote: > > pgc cluster > > Agree, except I would prefer "pg" instead of "pgc". pg is already taken by an ancient Unix pager utility (predecesso

Re: [GENERAL] PG 8.3.x doesn't get build

2008-04-03 Thread Alvaro Herrera
gt; be related to using an old version of "tar" that fails to extract such > long filenames correctly. Please install the latest tar you can get > your hands on, and see if it gets better... Also, do not use Midnight Commander to extract the files. -- Alvaro Herrera

Re: [GENERAL] creating a temp table in a function

2008-04-04 Thread Alvaro Herrera
have > to handle temp tables in plpgsql functions via EXECUTE? Yes, it should work on 8.3. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-gene

Re: [GENERAL] select distinct and index usage

2008-04-07 Thread Alvaro Herrera
, because there's no need for the index entries at all. If you want to test, try SET enable_seqscan TO 0 and then rerun the explain analyze. My bet is that it will use the index, and it will take longer. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The P

Re: [GENERAL] Cannot use a standalone backend to VACUUM in "postgres""

2008-04-07 Thread Alvaro Herrera
ing. (They would have a very old relfrozenxid.) -- 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 su

Re: [GENERAL] select distinct and index usage

2008-04-07 Thread Alvaro Herrera
Tom Lane escribió: > What I think you'll find, though, is that once you do force an indexscan > to be picked it'll be slower. Full-table index scans are typically > worse than seqscan+sort, unintuitive though that may sound. Hmm, should we switch the CLUSTER code to do that?

Re: [GENERAL] select distinct and index usage

2008-04-08 Thread Alvaro Herrera
nt the kind of "distinct scan" that you suggest, even though it certainly is a nice idea. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

Re: [GENERAL] plperlu and perl 5.10

2008-04-08 Thread Alvaro Herrera
f pgsql? You should request that to your package provider. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make change

Re: [GENERAL] More SSL crash woes

2008-04-08 Thread Alvaro Herrera
openssl.org/news/changelog.html http://www.columbia.edu/~ariel/ssleay/stack.html -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-general@pos

Re: [GENERAL] Cannot use a standalone backend to VACUUM in "postgres""

2008-04-08 Thread Alvaro Herrera
y?, Any other idea?. Hmm, nope -- take away the relnamespace check, because there is a different namespace for each backend (pg_temp_2, pg_temp_3, etc). And as far as I've seen, most leftover temp tables are on "high" temp schemas (i.e. those belonging to backends that are only us

Re: [GENERAL] Cannot use a standalone backend to VACUUM in "postgres""

2008-04-08 Thread Alvaro Herrera
Manuel Sugawara wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > > Hmm, nope -- take away the relnamespace check, because there is a > > different namespace for each backend (pg_temp_2, pg_temp_3, etc). > > Still no luck, changed the query to: > >

Re: [GENERAL] Cannot use a standalone backend to VACUUM in "postgres""

2008-04-08 Thread Alvaro Herrera
, len = 64, typmod = -1, byval = f) > 2: age = "2146484675" (typeid = 23, len = 4, typmod = -1, byval = t) > 1: relname = "pg_auth_members"(typeid = 19, len = 64, typmod = -1, > byval = f) > 2: age = "2146484675" (typeid = 23, len = 4, typmod = -1, byva

Re: [GENERAL] Cannot use a standalone backend to VACUUM in "postgres""

2008-04-08 Thread Alvaro Herrera
se out in 500k transactions ... -- 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/mailp

Re: [GENERAL] Cannot use a standalone backend to VACUUM in "postgres""

2008-04-09 Thread Alvaro Herrera
to the fact that they can only be vacuumed by a superuser, but in a standalone backend you are always superuser. So if you ran a database-wide vacuum, they should have been processed. What happens if you try "vacuum pg_database", etc? Does the age(relfrozenxid) change

Re: [GENERAL] Crash after VACUUM FULL cancel

2008-04-09 Thread Alvaro Herrera
re than enough. For the rare cases that it's not, you can use CLUSTER to compress the dead space. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing lis

Re: [GENERAL] BD removed

2008-04-11 Thread Alvaro Herrera
rsion. After that, we shutted down the > Postgres service and restarted the service again. > > The problem is that the folder where the tablespace of the database is > placed has been removed. I assume you understand that was a pretty silly thing to do. Do you have back

Re: [GENERAL] The default text search configuration will be set to "simple" ?

2008-04-14 Thread Alvaro Herrera
cation functions, such as isupper(3) and toupper(3), and the multi-byte character functions such as mblen(3) or wctomb(3). On my system, though, locale does report the full locale, not just encoding, when I change LANG. -- Alvaro Herreraht

Re: [GENERAL] Storage sizes for dates/times (documentation bug?)

2008-04-14 Thread Alvaro Herrera
;t. If it did, it'd be at least as > large as timetz. Hmm, so timetz does that? Amazing ... I didn't know that. Which means that storing date + timetz in two separate columns is not quite the same as storing a timestamptz. Oops. -- Alvaro Herrerahttp

Re: [GENERAL] util/int8.h: missing int8_text() function

2008-04-16 Thread Alvaro Herrera
() now? > (I use my own datatype which is similar to varchar/text > and for a CREATE CAST (int8 as myType) WITH FUNCTION myFunction(int8) AS > ASSIGNMENT; > I call the int8_text() function.) IIRC the casts now use the type's output function. I'm guessing you should be ab

Re: [GENERAL] Master-master replication with PostgreSQL

2008-04-16 Thread Alvaro Herrera
e from the central server to the branches. > > Try with bucardo ("http://bucardo.org/";) may be help you :). Unfortunately, Bucardo only seems to work with 2 masters -- you can't have 20. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The Post

Re: [GENERAL] "vacuum" and "cluster"

2008-04-16 Thread Alvaro Herrera
Craig Ringer escribió: > It's not stated explicitly, but I'm pretty sure discussion here has > mentioned that too. Given that, VACUUM FULL on a just-CLUSTERed table > should be redundant. It is, and a REINDEX is redundant too because CLUSTER does it internally.

Re: [GENERAL] Master-master replication with PostgreSQL

2008-04-16 Thread Alvaro Herrera
ardo.html#BucardoLimitations -- 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 subscript

Re: [GENERAL] Master-master replication with PostgreSQL

2008-04-16 Thread Alvaro Herrera
Rodrigo Gonzalez escribió: > Yes and no > > bucardo cannot handle master-master-master > > What I am doing is > > masterA-masterB > masterA-masterC > masterA-masterD Oh, I see -- makes sense. Quite misleading docs, then. -- Alvaro Herrera

Re: [GENERAL] "vacuum" and "cluster"

2008-04-16 Thread Alvaro Herrera
ld end up pointing to incorrect places in the heap.) -- 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] In the belly of the beast (MySQLCon)

2008-04-18 Thread Alvaro Herrera
ld be unable to help you upgrade here. Obviously you can upgrade one database at a time. Also, mostly it's not the database size what's a concern, but rather the size of the largest table. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL

Re: [GENERAL] In the belly of the beast (MySQLCon)

2008-04-18 Thread Alvaro Herrera
Joshua D. Drake wrote: > On Fri, 18 Apr 2008 14:59:34 -0400 > Alvaro Herrera <[EMAIL PROTECTED]> wrote: > > > I find it pretty unlikely that Slony would be unable to help you > > upgrade here. Obviously you can upgrade one database at a time. > > > >

Re: [GENERAL] In the belly of the beast (MySQLCon)

2008-04-18 Thread Alvaro Herrera
ose still have an effect in versions earlier than 8.3.) -- 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

Re: [GENERAL] Tsearch2 Spanish Dictionary

2008-04-21 Thread Alvaro Herrera
- PostgreSQL 8.4devel on x86_64-unknown-linux-gnu, compiled by GCC gcc-4.1 (GCC) 4.1.3 20080114 (prerelease) (Debian 4.1.2-19) (1 fila) So I'm thinking you've got encoding problems. Did you set up client_encoding app

Re: FW: Re: [GENERAL] create temp in function

2008-04-21 Thread Alvaro Herrera
seeing schedrec > correctly. Which part should be in an execute query statement? All sentences referring to the temp table. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list

Re: [GENERAL] How is statement level read consistency implemented?

2008-04-22 Thread Alvaro Herrera
remove the old rows? It does. > -With autovacuum, does it skip these rows still being referenced in a > transaction or does it wait? It skips them, the idea being that a future vacuum will remove them. -- Alvaro Herrerahttp://www.CommandPrompt.com/ P

Re: [GENERAL] How is statement level read consistency implemented?

2008-04-22 Thread Alvaro Herrera
- for example when setting up large replication sets with Slony, or during a pg_dump, no dead rows can be removed. Since the Slony thing can take a very long time, dead rows start to pile up in a way that can really harm performance. We're currently working on it so tha

Re: [GENERAL] plpgsql and logical expression evaluation

2008-04-23 Thread Alvaro Herrera
, or PL/SQL words differently on Oracle. If either of these cases is true, we will need to attack the problem sooner or later. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list

Re: [GENERAL] Need to update all my 60 million rows at once without transactional integrity

2008-04-23 Thread Alvaro Herrera
ing on Postgres as "not a transaction". -- 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 modify ENUM datatypes?

2008-04-24 Thread Alvaro Herrera
at the current ENUM implementation is completely new. -- 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] Adding notes against fields

2008-04-24 Thread Alvaro Herrera
esql table? > > > > You can add comments: COMMENT ON IS 'text' - see > > manuals for details. > > However, COMMENTS don't append. But you can add one to the new column. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The P

Re: [GENERAL] meaning of default_statistics_target

2008-04-28 Thread Alvaro Herrera
pare the stats, so you should theoretically get more >> accurate stats for the other columns too, even though they'll still get >> boiled down to the same array lengths as before. How larger is the sample, I don't know. -- Alvaro Herrerahttp

Re: [GENERAL] Why is postgres autovacuuming a table that is never updated?

2008-04-29 Thread Alvaro Herrera
autovacuum.freeze_max_age). Hmm, maybe it's called max_freeze_age, I don't recall offhand. Beware of the pg_autovacuum column being zero. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via

Re: [GENERAL] Deadlock situation?

2008-04-29 Thread Alvaro Herrera
384 | pslogin | COMMIT | f >| 2008-04-24 Do you have deferred constraints? Maybe some of them are missing indexes. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-g

Re: [GENERAL] Why is postgres autovacuuming a table that is never updated?

2008-04-30 Thread Alvaro Herrera
so often. Agreed, that's a good strategy. You only need to keep an eye on how often is pg_clog going to be trimmed. (The only disadvantage is how much spaces it occupies on disk.) -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consult

Re: [GENERAL] Custom Base Type in C

2008-05-07 Thread Alvaro Herrera
ind anything very helpful. If not, could > someone help me understand what my c struct would look like and what values > I need for INTERNALLENGTH, ALIGNMENT, STORAGE, etc in the CREATE TYPE > command? Probably what's biting you is that the type needs to be pass-by-reference a

Re: [GENERAL] auto-vacuum questions

2008-05-08 Thread Alvaro Herrera
and start testing, does this mean > auto-vacuum won't analyze it? Is this maybe related to question > 1 where I think auto-vacuum actually wasn't running? It might mean it hasn't been analyzed _yet_. If there are too many databases, it may take a while. -- Alvaro Herrera

Re: [GENERAL] Making sure \timing is on

2008-05-12 Thread Alvaro Herrera
doesn't yet handle > error cases. How liberal should we be about capitalization, spelling, Hmm, there's already code for parsing boolean variables in psql, see ParseVariableBool. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - C

Re: [GENERAL] pg_standby / WAL archive-restore through system restarts

2008-05-13 Thread Alvaro Herrera
e any manual re-sync steps before it can >>> resume recovery? >> >> I think you'll need to redo the whole process : restore the full data >> backup, create the recovery.conf file, etc. No, you don't. The server can continue replaying files. -- Alvaro Herrer

Re: [GENERAL] Making sure \timing is on

2008-05-13 Thread Alvaro Herrera
David Fetter escribió: > Thanks for the heads-up :) > > Second patch attached, this time with some docs. Added to July commitfest. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support --

Re: [GENERAL] Making sure \timing is on

2008-05-13 Thread Alvaro Herrera
Tom Lane escribió: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > David Fetter escribi�: > >> Thanks for the heads-up :) > >> > >> Second patch attached, this time with some docs. > > > Added to July commitfest. > > Surely this is mer

Re: [GENERAL] Making sure \timing is on

2008-05-13 Thread Alvaro Herrera
igned is the default mode, \a should not toggle between last state and aligned, but rather between last state and unaligned. Which makes it a misnomer. Or maybe the thing to do is leave them damn well alone and just fix \timing. -- Alvaro Herrerahttp://www.Comman

Re: [GENERAL] Question on warm standby log shipping

2008-05-15 Thread Alvaro Herrera
exit 0; > fi > # startup triggered > if test -f $triggerfile; then > exit 0; > fi > sleep 2; > done > --snipp-- You should not remove the segment until it's no longer needed. To figure that out you can use %r of restore_command. -- Alvaro Herrera

Re: [GENERAL] F-Secure and PostgreSQL

2008-05-23 Thread Alvaro Herrera
er machine I could try > to connect from. There are no other negotiation ports in PostgreSQL. What's the exact error message you're getting? -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via p

Re: [GENERAL] Short-circuiting FK check for a newly-added field

2008-05-23 Thread Alvaro Herrera
problem is that it does a table scan only to find that all values are NULL, which is pretty pointless. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list (pgsql-general

Re: [GENERAL] Annoying messages when copy sql code to psql terminal

2008-06-05 Thread Alvaro Herrera
tion to psql, I think, but check the manual). > > There's probably a way to turn off tab-completion without > disabling readline altogether, but I don't know how offhand. This can be done by adding $if psql set disable-completion on $endif to .inputrc. -- Alvaro Herre

Re: [GENERAL] Application EventLog: could not write to log file: Bad file descriptor

2008-06-06 Thread Alvaro Herrera
ssed something on the install). Hope that helps Do you have CSV logging enabled? -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make chang

Re: [GENERAL] array column and b-tree index allowing only 8191 bytes

2008-06-07 Thread Alvaro Herrera
Celso Pinto wrote: > So my questions are: is this at all possible? If so, is is possible to > increate that maximum size? Indexing the arrays themselves is probably pretty useless. Try indexing the elements, which you can do with the intarray contrib module. -- Alvaro H

Re: [GENERAL] temporarily deactivate an index

2008-06-08 Thread Alvaro Herrera
uot;not valid/ready"). -- 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 subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Application EventLog: could not write to log file: Bad file descriptor

2008-06-09 Thread Alvaro Herrera
Ati Rosselet escribió: > sorry, forgot to cc: to the group..To: Alvaro Herrera < > [EMAIL PROTECTED]> > > > not as far as I can tell... I have log_destination='stderr'. unless csv > logging is enabled in another location? No, that should mean it's disa

Re: [GENERAL] array column and b-tree index allowing only 8191 bytes

2008-06-12 Thread Alvaro Herrera
Celso Pinto wrote: > What, if any, would be the recommended options to improve this > scenario? Not using intarray? :-) Not using a broken design. Arrays are a poor fit in the relational model. Avoid them. -- Alvaro Herrerahttp://www.CommandProm

Re: [GENERAL] Unable to dump database using pg_dump

2008-06-12 Thread Alvaro Herrera
t > me in the right direction, I'd appreciate it. Huh, you really need a proper hex editor. Try "hexedit" for example. And you need to convert the values to hexadecimal. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consu

Re: [GENERAL] Heavily fragmented table and index data in 8.0.3

2008-06-12 Thread Alvaro Herrera
a recent release. 8.0 is an old release. -- 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.postg

Re: [GENERAL] Unable to dump database using pg_dump

2008-06-12 Thread Alvaro Herrera
eed the data. The new server already has > the table structure, I just need the most current data to put into the > server. Yes, you can use COPY table TO STDOUT. This can probably be piped directly from one server to the other. -- Alvaro Herrerahttp:

Re: [GENERAL] Backup using GiT?

2008-06-13 Thread Alvaro Herrera
sufficiently similar to make the deltas small enough to > warrant this approach? Hmm, perhaps a not completely insane thing to do would be to use another pg_dump "format" (i.e. a new -F option) which installs stuff on a GIT repo. -- Alvaro Herrerahtt

Re: [GENERAL] Backup using GiT?

2008-06-13 Thread Alvaro Herrera
etween two dumps of the same table. To get any benefit, you'd need to get pg_dump to dump sorted tuples. -- 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] dblink() cursor error/issue (TopMemoryContext)

2008-06-14 Thread Alvaro Herrera
it. Unless I'm misunderstanding the issue completely. -- 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

Re: [GENERAL] Logging Parameter Values

2008-06-19 Thread Alvaro Herrera
st postgres 2008-06-19 17:58:05.185 EEST LOG: duration: > 2315.420 ms statement: EXECUTE foo(1000); The parameter is on the above line, isn't it? > migration_test postgres 2008-06-19 17:58:05.185 EEST DETAIL: prepare: > PREPARE foo (int) AS SELECT S.i * T.i FROM generate_s

Re: [GENERAL] pg_locks "at-a-glance" view

2008-06-19 Thread Alvaro Herrera
s numbers for all the lock modes > and just test to see if one lock is higher than another. This is not always the case. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list (pgsql-ge

Re: [GENERAL] Timezone issue - Is it me or is this a massive bug?

2008-06-23 Thread Alvaro Herrera
note this? Absolutely. Care to submit a patch? -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make c

Re: [GENERAL] Method to detect certain characters in column?

2008-06-23 Thread Alvaro Herrera
Antonio Perez wrote: > example > > SELECT name FROM  table1 where name > ~* '*Ã*' Actually this regex is flawed. It looks like a common shell "glob" pattern (I don't know the real name of these things), which is a very different and simpler ani

Re: [GENERAL] what are rules for?

2008-06-24 Thread Alvaro Herrera
just need to be able to pass the list of affected tuples to the trigger function, which until now has remained unimplemented. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-gen

Re: [GENERAL] 0xc3 error Text Search Windows French

2008-06-25 Thread Alvaro Herrera
f7a039648990d1037119efb61146d (This is the HEAD version of the patch; 8.3 should be identically patched.) -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.

Re: [GENERAL] 0xc3 error Text Search Windows French

2008-06-26 Thread Alvaro Herrera
gs are fixed" (or very quickly if a security problem is found), so you could be waiting for a while. -- Alvaro Herrera http://www.amazon.com/gp/registry/5ZYLFMCVHXC "Amanece. (Ignacio Reyes) El Cerro San Cristóbal me mir

Re: [GENERAL] libpq block allocated before my malloc handler inits?

2008-06-29 Thread Alvaro Herrera
e stealthily. Maybe it's something we're being linked against -- pthread perhaps? OpenSSL? Maybe you'd have more luck if you noted what is libpq doing when this invalid free is called. Perhaps call abort() and get a stack trace from the resulting dump. -- Alvaro Herrera

Re: [GENERAL] I can't drop a user if I don't drop his grants beforehand??????????????????

2009-05-29 Thread Alvaro Herrera
Nico Sabbi wrote: > Alvaro Herrera ha scritto: >>> I'm not speaking of object ownership, but of GRANTs. >> >> As Tom says, it's a known limitation. Did you try REASSIGN OWNED and/or DROP >> OWNED? > No, I didn't because the tables weren't o

Re: [GENERAL] pg_dump & table space

2009-06-01 Thread Alvaro Herrera
e it would be better if the dump has a RESET default_tablespace before the SET. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-gen

Re: [GENERAL] How can I manually alter the statistics for a column?

2009-06-02 Thread Alvaro Herrera
h of pages with only dead tuples at the start of the table? Maybe a lot of empty pages at the start of the table (If this is 8.3 you have to consider sync_seqscan as well) -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.

Re: [GENERAL] lc_messages 8.3.7

2009-06-03 Thread Alvaro Herrera
------- PostgreSQL 8.3.7 on x86_64-unknown-linux-gnu, compiled by GCC gcc (Debian 4.3.3-3) 4.3.3 (1 fila) -- 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] type cast in index

2009-06-09 Thread Alvaro Herrera
ng an AT TIME ZONE 'UTC' specification, which will cause it to be turned into a plain timestamp (without tz). -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing list (pgsql-gen

Re: [GENERAL] aliases for sequences and other DB objects?

2009-06-09 Thread Alvaro Herrera
alias my_sequence_alias for my_sequence; > select nextval('my_sequence_alias'); No. What would this be used for? -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-general mailing lis

Re: [GENERAL] Postgres auditing features

2009-06-11 Thread Alvaro Herrera
t; facilities yourself. I have added this to the FAQ http://wiki.postgresql.org/wiki/FAQ#Is_there_a_way_to_leave_an_audit_trail_of_database_operations.3F ... he says, hoping that it'll help generate interest in getting the FAQ updated ... -- Alvaro Herrera

Re: [GENERAL] 10 TB database

2009-06-15 Thread Alvaro Herrera
month. Sounds a bit like what Truviso does ... -- Alvaro Herrera -- 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 use PQfn() in libpq library?

2009-06-19 Thread Alvaro Herrera
ctionality by setting up a prepared > >statement to define the function call. Then, executing the statement > >with binary transmission of parameters and results substitutes for a > >fast-path function call. -- Alvaro Herrerahttp://w

<    3   4   5   6   7   8   9   10   11   12   >