Re: [ADMIN] ERROR: could not open file "base/125542/12631" Corruption?

2013-10-04 Thread Alvaro Herrera
Alejandro Brust escribió: > U could try some like "SET/ zero_damaged_pages = on"and perform a > vacuum-db and may be pg_dump I don't think this is a good idea. It might cause data loss. In any case it's unlikely to fix the reported problem. -- Álvaro Herrerahttp://www.2nd

Re: [ADMIN] wrong database name in error message?

2013-09-14 Thread Alvaro Herrera
Rural Hunter escribió: > 2. Since db1 is a very large database(it is the main db the user is > using) I can not afford to take long time to vacuum full on that. So > I thought about to try on other small dbs first. > > 3. I stop the instance. > > 4. I use "echo 'vacuum full;' | postgres --single

Re: [ADMIN] wrong database name in error message?

2013-09-13 Thread Alvaro Herrera
Rural Hunter escribió: > I'm on 9.2.4 and I have several databases on the instance say db1, > db2, db2 etc. Today I got this error message on connection of any > of the databases: > ERROR: database is not accepting commands to avoid wraparound data > loss in database "db1" > Suggestion:Stop the

Re: [ADMIN] Disk latency goes up during certaing pediods

2013-07-26 Thread Alvaro Herrera
German Becker escribió: > Hi list, > > I am running Postgres 9.1 on Ubuntu 12.04. I have a dedicated disk for > pg_xlog, using ext4 filesystem with journaling in writeback mode > During high load times, the disk usage is arround 40%. The IO write time is > constant at about 3ms. On certain occasio

Re: [ADMIN] pg_upgrade (9.1 to 9.2) bombing on casts

2013-07-11 Thread Alvaro Herrera
Wells Oliver escribió: > I have this error in a pg_upgrade: > > psql:pg_upgrade_dump_db.sql:88725: ERROR: UNION could not convert type > text[] to integer[] Have a look at the file and see what's in the mentioned line. My guess is that this is a view definition, or similar, that no longer works

Re: [ADMIN] Connecting to a remote db server

2013-07-10 Thread Alvaro Herrera
Struckhoff, Kevin wrote: > I'm trying to use the psql tool: > > /home/postgres->psql test > psql: could not connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/tmp/.s.PGSQL.5432"? > > the answer of course

Re: [ADMIN] Connecting to a remote db server

2013-07-10 Thread Alvaro Herrera
Struckhoff, Kevin wrote: > Sorry, rhel 5.8. so there is a separate client install package? Yes; on RHEL the library package is called postgresql-libs or something similar, while the client package containing the psql utility is just "postgresql". (The server lives in a package called postgresql-

Re: [ADMIN] Connecting to a remote db server

2013-07-10 Thread Alvaro Herrera
Struckhoff, Kevin wrote: > I've installed postgres 9.2 on a server, call it db01. I now want to access > postgres from my app server, call it app01. > > What do I install on the app01 server? I've installed postgres 9.2 on it and > set the postgresesql.conf file's listen_address to a value of '*

Re: [ADMIN] How was I able to drop a role even though objects depend on it?

2013-07-01 Thread Alvaro Herrera
David Johnston wrote: > Wojciechowski, Robert (GE Transportation) wrote > > [...] there is a database that shows this connect grant to a user that was > > known as foo1_userA (oid 3562339547): 3562339547=c/postgres > > The main user dependent situation is having said user OWNER on a database > ob

Re: [ADMIN] How was I able to drop a role even though objects depend on it?

2013-07-01 Thread Alvaro Herrera
Wojciechowski, Robert (GE Transportation) wrote: > I’ve noticed a weird situation on one of our development servers running > PostgreSQL 9.1.3 where roles have been dropped even though objects depend on > that user. I didn’t think that was possible due to the dependency checks on > DROP USER/ROL

Re: [ADMIN] can postgres btree indexes shrink?

2013-06-26 Thread Alvaro Herrera
Azad Bolour wrote: > Does the postgres implementation of btrees shrink the index if adjacent > index tree nodes can be combined? No. Completely empty pages are collected as free space for later use, but partially-empty pages are not merged. -- Álvaro Herrerahttp://www.2ndQuadran

Re: [ADMIN] exceeded MAX_ALLOCATED_DESCS while trying to open file

2013-05-28 Thread Alvaro Herrera
k...@rice.edu wrote: > Each SELECT opens your FOREIGN TABLE so you are opening it 10 times. This is > hardcoded by a #define in ./src/backend/storage/file/fd.c during the build so > you would need to recompile the software yourself to change it. Can you re- > write your query using a single SELECT

Re: [ADMIN] Output of pg_controldata

2013-05-24 Thread Alvaro Herrera
Virupaksha Kanjilal escribió: > Does anyone know what the fields in the output of pg_controldata mean? A lot of people. What do you want to know, precisely? -- Álvaro Herrerahttp://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsq

Re: [ADMIN] Sr. Postgres DBA

2013-05-10 Thread Alvaro Herrera
Craig James wrote: > On Thu, May 9, 2013 at 5:01 PM, Miu, Monica wrote: > > > Hi all, > > > > My name is Monica Miu and I work in Talent Acquisition for Asurion Mobile > > Applications > > Basically you just pissed everyone off that you're trying to recruit. This > is a highly technical discuss

Re: [ADMIN] database role for backups?

2013-05-06 Thread Alvaro Herrera
Kamil Jońca wrote: > PS. does news.postgresql.org work? I got 'unknown host' Not anymore. -- Álvaro Herrerahttp://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes t

Re: [ADMIN] top posting?

2013-05-06 Thread Alvaro Herrera
Craig James wrote: > Contributors in these newsgroups seem to think it's OK to quote five pages > of someone else's response, then add one or two sentences at the bottom ... > it's just laziness that forces readers to wade through the same stuff over > and over in each thread. > > How did the Pos

Re: [ADMIN] regexp_replace grief

2013-04-12 Thread Alvaro Herrera
Armin Resch escribió: > Thx, Albe. I tested both proposals, and I gravitate now more towards the > E'' nomenclature since it avoids something like this: > > $pg_bs_char = ( $dbh->{pg_server_version} >= 90100 ) ? "\\" : ""; > > Hoping for a long half life of the E'' nomenclature ... E'' is ve

Re: [ADMIN] tables mysteriously truncated

2013-03-13 Thread Alvaro Herrera
"Gabriel E. Sánchez Martínez" escribió: > I will try to make these tables logged and see if they withstand the > test of time. Are crashes and unclean shutdowns logged anywhere? I > would like to see why I might be getting them. I have not had to > manually restart the database, if that were an

Re: [HACKERS] Re: [ADMIN] PD_ALL_VISIBLE flag was incorrectly set happend during repeatable vacuum

2011-03-02 Thread Alvaro Herrera
Excerpts from daveg's message of mié mar 02 18:30:34 -0300 2011: > After a restart and vacuum of all dbs with no other activity things were > quiet for a couple hours and then we started seeing these PD_ALL_VISIBLE > messages again. > > Going back through the logs we have been getting these sinc

Re: [ADMIN] Autovacuum seems to block database: WARNING worker took too long to start

2010-11-20 Thread Alvaro Herrera
Excerpts from Pablo Delgado Díaz-Pache's message of lun nov 15 04:52:53 -0300 2010: > > But it strikes me that the code comment is wrong in one significant way: > > if the postmaster were failing to heed SIGUSR1 at all, you could reach > > the timeout here, because the fork-failed signal wouldn't

Re: [ADMIN] Autovacuum seems to block database: WARNING worker took too long to start

2010-11-18 Thread Alvaro Herrera
Excerpts from Pablo Delgado Díaz-Pache's message of jue nov 18 08:57:16 -0300 2010: > 2) We did a strace to the postmaster pid. However we had 2 postmasters not > dead > > # ps -fea |grep -i postmaster > postgres 3889 1 0 Nov16 ?00:01:24 /usr/bin/postmaster -p 5432 > -D /var/lib/pg

Re: [ADMIN] Autovacuum seems to block database: WARNING worker took too long to start

2010-11-18 Thread Alvaro Herrera
Excerpts from Pablo Delgado Díaz-Pache's message of jue nov 18 08:57:16 -0300 2010: > Well, we had the problem again. This is what we did > > 1) A "ps" to check what processes were running. Many "postmaster" processes > in defunct state. A few postgres connections still working. A few "psql" (by

Re: [ADMIN] Autovacuum seems to block database: WARNING worker took too long to start

2010-11-16 Thread Alvaro Herrera
Excerpts from Pablo Delgado Díaz-Pache's message of mar nov 16 12:18:09 -0300 2010: > Not sure what you mean. > > Once we start getting that error in the postgres log, there is no autovacuum > entry. Only that error message once every minute (and as i wrote in my last > email, the same message al

Re: [ADMIN] autovacuum launcher process eating up 17G+ of ram?

2010-11-08 Thread Alvaro Herrera
Excerpts from Tom Lane's message of lun nov 08 12:15:02 -0300 2010: > Alvaro Herrera writes: > > Patch for this is attached (applies cleanly to 9.0 and HEAD; 8.4 doesn't > > need to be patched, but I'll run the test case now just to be sure.) > > Possibly

Re: [ADMIN] Forced quiesce

2010-11-08 Thread Alvaro Herrera
Excerpts from Little, Douglas's message of jue oct 28 09:39:19 -0300 2010: > Hi, > We're having to vacuum full the system tables everyday due to the number of > temp table drop/creates. Seems to me that you're solving the wrong problem. I think you should be doing very frequent lazy vacuum (not

Re: [ADMIN] autovacuum launcher process eating up 17G+ of ram?

2010-11-08 Thread Alvaro Herrera
Excerpts from Tom Lane's message of lun oct 25 16:57:10 -0300 2010: > It looks to me like the problem is that get_database_list() > intentionally pushes its result into a long-lived context, and then the > result is never cleaned up. It doesn't help any that it does a lot of > leaky things like h

Re: [ADMIN] General migration question

2010-08-31 Thread Alvaro Herrera
Excerpts from Greg Spiegelberg's message of mar ago 31 09:04:18 -0400 2010: > Probably questions best asked on hackers but I figure many are represented > here. > Will there ever be a release where a dump-restore is not necessary? > Perhaps, at least, minor releases (e.g. 9.0 to 9.1) will not requ

Re: [ADMIN] Unable to drop role

2010-08-26 Thread Alvaro Herrera
Excerpts from Tom Lane's message of jue ago 26 14:59:43 -0400 2010: > Alvaro Herrera writes: > > Code is here: > > else if (deptype == SHARED_DEPENDENCY_ACL) > > appendStringInfo(descs, _("access to %s"), objdesc); > > in

Re: [ADMIN] postgresql 8.3 logging user passwords in clear text

2010-08-24 Thread Alvaro Herrera
Excerpts from Keith Pinnix's message of lun ago 23 19:47:53 -0400 2010: > All: > > I have a postgresql instance and I have noticed that it is logging the user > passwords in clear text in the postgresql.log. Is this configurable so that > it > retains the user info and commands but does not l

Re: [ADMIN] Unable to drop role

2010-08-24 Thread Alvaro Herrera
Excerpts from Tom Lane's message of mar ago 24 09:36:05 -0400 2010: > "McGehee, Robert" writes: > > Thanks Tom and Alvaro for clearing up my confusion. > > \l showed that a485099 had both (C)reate and (T)emporary access. > > Revoking those allowed me to drop the role. Thanks for the help! > > I w

Re: [ADMIN] Unable to drop role

2010-08-23 Thread Alvaro Herrera
Excerpts from McGehee, Robert's message of lun ago 23 13:29:47 -0400 2010: > PostgreSQL developers, > I am unable to drop a role with presumably no object dependencies or > connection access on my PostgreSQL 8.4.2 installation (64-bit OSX). Any > help would be greatly appreciated as I've spent way

Re: [ADMIN] Autovacuum daemon internal handling

2010-08-12 Thread Alvaro Herrera
Excerpts from Gnanakumar's message of jue ago 12 00:56:34 -0400 2010: > > in 8.2 "naptime" means "time to sleep after we finish a job". So even > > if the previous task takes an hour, it will still sleep a minute before > > doing another round. (Note that this setting has a different meaning in >

Re: [ADMIN] Autovacuum daemon internal handling

2010-08-11 Thread Alvaro Herrera
Excerpts from Gnanakumar's message of mié ago 11 01:07:08 -0400 2010: Hi, > 1. Does autovacuum daemon works with one table at a time or does it work > with multiple tables at the same time? Only one. > Reason to ask this question is, let's say I've "autovacuum_naptime" set to 1 > minute, and t

Re: [ADMIN] postgres function does not handle PUBLIC - expected?

2010-08-10 Thread Alvaro Herrera
Excerpts from Kasia Tuszynska's message of mar ago 10 15:08:20 -0400 2010: > Hello Postgres Gurus, > > Is it expected behavior for the has_table_privilege postgres function to not > handle the user PUBLIC? Or should I submit a bug? > > The has_table_privilege function does not handle PUBLIC - th

Re: [ADMIN] High-water Mark for number of sessions/connections reached in Postgres

2010-08-09 Thread Alvaro Herrera
Excerpts from Scott Marlowe's message of lun ago 09 18:29:58 -0400 2010: > If you want a date stamp, you can change the ps ax stuff to look like this: > > date +"%Y-%m-%d %H:%M:%S"|tr "\n" ":";ps ax|grep postgres:|grep -v grep|wc -l FWIW the "grep" business is best solved by ps itself, something

Re: [ADMIN] out of memory error

2010-08-06 Thread Alvaro Herrera
Excerpts from Silvio Brandani's message of vie ago 06 07:56:53 -0400 2010: > it seems the execution plan is different for this query when run from > the application versus the psql . How can I check the execution plan of > a query run by a user?? > I can set explain analyze for the query via psq

Re: [ADMIN] Autovacuum missing tables

2010-07-30 Thread Alvaro Herrera
Excerpts from Bryan Payne's message of vie jul 30 11:10:42 -0400 2010: > Table info (this table shows last autovacuum on 7/28): > hostname=> VACUUM ANALYZE VERBOSE hierarchy_pull; > INFO: vacuuming "public.hierarchy_pull" > INFO: "hierarchy_pull": found 0 removable, 1906 nonremovable row > vers

Re: [ADMIN] pl/PHP build on PostgreSQL v9 beta?

2010-07-27 Thread Alvaro Herrera
Excerpts from Lou Picciano's message of mar jul 27 11:23:50 -0400 2010: > Has anyone had any luck building pl/PHP on PostgreSQL v9 betas? Any > tips/gotchas? It works for me -- just compiled with with 9.0 beta3 and regression tests pass fine. > Is this language extension immensely successful/po

Re: [ADMIN] upper and UTF-8

2010-07-26 Thread Alvaro Herrera
Excerpts from Scott Marlowe's message of lun jul 26 23:12:08 -0400 2010: > On Mon, Jul 26, 2010 at 8:09 PM, Alvaro Herrera > wrote: > > I suspect that the problem is an incorrect client_encoding setting. > > Yeah, OP had set lc_collate to C under the mistaken impr

Re: [ADMIN] upper and UTF-8

2010-07-26 Thread Alvaro Herrera
Excerpts from Benjamin Krajmalnik's message of lun jul 26 17:03:54 -0400 2010: > I just used the upper(text) function on a database which is utf8 encoded > and which has spanish text. > > All of the regular characters were properly converted, except for > characters which had accents. FWIW it wor

Re: [ADMIN] Autovacuum on defined interval

2010-07-20 Thread Alvaro Herrera
Excerpts from Fábio Gibon - Comex System's message of mar jul 20 16:13:39 -0400 2010: > Perfect!!! > > I'm starting with PostgreSQL (my knowledge is Oracle). Can you explain more > about autovacuum? for example... > 1 - on windows SO, autovacuum start works (postgres.exe as > autovacuum_max_wor

Re: [ADMIN] Autovacuum on defined interval

2010-07-20 Thread Alvaro Herrera
Excerpts from Fábio Gibon - Comex System's message of mar jul 20 12:20:36 -0400 2010: > Hi everybody, > are there how define autovacuum to ON and define the period time (for > example, 00h - 06h) that it's can run? You could have a script that toggles the value in postgresql.conf and do

Re: [ADMIN] Change to 'timing on' globally

2010-07-05 Thread Alvaro Herrera
Excerpts from Balkrishna Sharma's message of lun jul 05 13:00:44 -0400 2010: > > I know that we can toggle the timing at session level by using \timing in > psql. > Is there a way to set the default to 'timing on' globally across the database > or atleast across all psql statements by a specific

Re: [ADMIN] blocking automatic vacuum

2010-07-01 Thread Alvaro Herrera
Excerpts from Uwe Bartels's message of jue jul 01 04:42:42 -0400 2010: > Hi Tom, > > till now i found more blocking vacuum processes in other databases as well. > we migrated postgres from 8.3 to 8.4 in april. Please examine pg_locks to see what's blocking autovacuum. The key is WHERE granted=f.

Re: [ADMIN] Unable to start Statistics Collector

2010-06-23 Thread Alvaro Herrera
Excerpts from Senthil Kumar G's message of mié jun 23 07:59:26 -0400 2010: > Hi > > > > I executed follows. I am able to ping. > > >ping 127.0.0.1 So can you ping localhost? -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Develop

Re: [ADMIN] alter column resize triggers question

2010-06-21 Thread Alvaro Herrera
Excerpts from Mike Broers's message of lun jun 21 14:18:01 -0400 2010: > I need to change service_name column to varchar(55), my plan was to backup > the table with pg_dump, then run the below alter statement: > > alter table dim_product alter column service_name type varchar(55); > > But i am w

Re: [ADMIN] Clearing locks

2010-06-07 Thread Alvaro Herrera
Excerpts from Matthew Excell's message of lun jun 07 15:33:27 -0400 2010: > I'm on PostgreSQL 8.3.11 on Debian. > > I have a small piece of DDL (alter table title drop column is_target) that > hangs "waiting" forever. (I've waited hours - it still shows as waiting in > pg_top.) I have restarted t

Re: [ADMIN] What is field separator?

2010-05-31 Thread Alvaro Herrera
Excerpts from Tena Sakai's message of lun may 31 21:36:41 -0400 2010: > But when I do this: > $ echo "select marker, p, afreq from gallo.fbat_sdsdecode limit 10" | \ > > psql -P 'format=unaligned' -P 'fieldsep=\t' -t -f - musket > (here the only change from the previous is the specification of

Re: [ADMIN] How can I tell if I'm autovacuuming?

2010-05-25 Thread Alvaro Herrera
Excerpts from Mitch Collinsworth's message of mar may 25 15:38:38 -0400 2010: > On Tue, 25 May 2010, Alvaro Herrera wrote: > > I'd say you're running 8.1, not 8.2 as initially stated. > > Well... yes. Sorry.I take it the answer is different then... >

Re: [ADMIN] How can I tell if I'm autovacuuming?

2010-05-25 Thread Alvaro Herrera
Excerpts from Mitch Collinsworth's message of mar may 25 14:40:04 -0400 2010: > I'm wondering about the same question. I did the above and restarted, > and now my pg_stat_user_tables looks like this: > > postgres=# \d pg_stat_user_tables > View "pg_catalog.pg_stat_user_tables" > Column

Re: [ADMIN] Clarification Needed: When does autovacuum daemon run?

2010-05-20 Thread Alvaro Herrera
Excerpts from Narasimha Murthy-VRFX87's message of jue may 20 02:47:21 -0400 2010: > Hi Alvaro Herrera, > > Since, my original plan was to run the auto-vacuum daily EXACTLY at 5 am, I > wanted to know which seconds of a minute. My query in other word was, if I > set autova

Re: [ADMIN] could not truncate directory "pg_subtrans": apparent wraparound

2010-05-20 Thread Alvaro Herrera
Excerpts from Mikko Partio's message of jue may 20 00:39:00 -0400 2010: > On Wed, May 19, 2010 at 3:21 PM, Ray Stell wrote: > > http://archives.postgresql.org/pgsql-general/2007-06/msg01050.php > > Browsing through that thread I can see that I have similar symptoms: > > $ pg_controldata | grep

Re: [ADMIN] Clarification Needed: When does autovacuum daemon run?

2010-05-19 Thread Alvaro Herrera
Excerpts from Narasimha Murthy-VRFX87's message of mar may 18 07:04:34 -0400 2010: > I need some more clarification. autovacuum_naptime takes one minute by > default. In this case, which second of each minute the autovacuum > daemon runs (provided it is enabled)? Why does it matter which second

Re: [ADMIN] Clarification Needed: When does autovacuum daemon run?

2010-05-18 Thread Alvaro Herrera
Excerpts from Narasimha Murthy-VRFX87's message of mar may 18 05:56:26 -0400 2010: > Hello, > > Postgresql-8.2 manual has mentioned following points. > * The autovacuum daemon, when enabled, runs every autovacuum_naptime > seconds. > * autovacuum_naptime (integer): Specifies the delay between "a

Re: [ADMIN] Autovacuum and invalid page header

2010-05-13 Thread Alvaro Herrera
Excerpts from Kevin Grittner's message of jue may 13 10:25:04 -0400 2010: > Ireneusz Pluta wrote: > > > many different autovacuums on the same table cycling in start-fail > > scenario because of invalid page headers of some indexes of the > > table. Manual VACUUM VERBOSE said me that, now I can

Re: [ADMIN] Autovacuum stopped running

2010-05-03 Thread Alvaro Herrera
Benjamin Krajmalnik wrote: > I did not find any errors pertaining to the autovacuum task. Hmm. I think it would be good to find out what is the launcher doing, if anything. If you strace it, do you see it sending signals to postmaster? -- Alvaro Herrerah

Re: [ADMIN] Autovacuum stopped running

2010-05-03 Thread Alvaro Herrera
vacuum some table and isn't ever able to get to the next ones. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make change

Re: [ADMIN] when does postgresql read from pg_hba.conf ??

2010-04-26 Thread Alvaro Herrera
Julius Tuskenis wrote: > Hello, Alvaro Herrera > > 2010.04.26 18:38, Alvaro Herrera rašė: > >Hmm, isn't the file read every time a backend starts on Windows? > >This would explain the problem if the file was edited between 13:56:45 > >and 13:57:38. > >

Re: [ADMIN] when does postgresql read from pg_hba.conf ??

2010-04-26 Thread Alvaro Herrera
s on Windows? This would explain the problem if the file was edited between 13:56:45 and 13:57:38. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To

Re: [ADMIN] PANIC: read of clog file 3165, offset 0 failed: Success

2010-04-19 Thread Alvaro Herrera
> You should arrange to upgrade to a supported version as soon as > possible. Yeah, at least update to 7.3.21 which is not supported but has quite a few bugs fixed -- and I think this misleading error message was fixed in one of them. -- Alvaro Herrerahttp://www.

Re: [ADMIN] TOAST behavior in 8.3 and 8.4

2010-04-13 Thread Alvaro Herrera
usly 256 bytes)" The 2kB are compared against tuple size. The 32 bytes (previously 256) are compared against a single column value. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sen

Re: [ADMIN] Autovacuum daemon functionality questions

2010-04-09 Thread Alvaro Herrera
ble? Any pointers to > relevant documentation are appreciated. 8.3 http://www.postgresql.org/docs/8.3/static/runtime-config-autovacuum.html -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing

Re: [ADMIN] Autovacuum daemon functionality questions

2010-04-08 Thread Alvaro Herrera
gt; obsolete tuples since last VACUUM from this entries. There are two separate counters for live and dead tuples, IIRC (though they may not be exposed in the pg_stat views) > 3. Is there a way to see autovacuum daemon log entries? Not in 8.2. -- Alvaro Herrera

Re: [ADMIN] Compile Problem for Alpha 5 in /src/backend/utils/error/elog.c

2010-04-07 Thread Alvaro Herrera
ue of ‘write’, declared with > attribute warn_unused_result Though, is there value in silencing these warnings? -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)

Re: [ADMIN] tuning auto vacuum for highly active tables

2010-03-23 Thread Alvaro Herrera
Alvaro Herrera escribió: > Also, keep in mind that max_workers is a new setting in 8.3. Since the > OP is running 8.2, he can only get one "worker". Presumable he needs to > disable autovac for those two very active tables and setup a cron job to > process them in th

Re: [ADMIN] tuning auto vacuum for highly active tables

2010-03-23 Thread Alvaro Herrera
uot;. Presumable he needs to disable autovac for those two very active tables and setup a cron job to process them in their own schedule. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Autovac vs manual with analyze

2010-03-15 Thread Alvaro Herrera
over the dead space. In 8.1, clog is only cleared by database-wide vacuums, which IIRC autovac doesn't do unless it does a for-Xid-wraparound run, which is not often. Probably a weekly database-wide vacuum (not full, i.e. vacuumdb without -f) is enough. -- Alvaro Herrera

Re: [ADMIN] How to manage WAL

2010-02-11 Thread Alvaro Herrera
etc...) ? You could do that if you wanted, but there's a window during which you have no backup at all. Perhaps it's better to take a second base backup, start archiving to a different directory /WAL2, and when the second base backup is done you can delete /WAL -- Alvaro Herrera

Re: [ADMIN] Disabling triggers with psql (gforge 7.4 to 8.2 migration)

2010-02-10 Thread Alvaro Herrera
Iñigo Martinez Lasala wrote: > Hmm... > No, I've not tried it. Does pg_dump perform some kind of truncating over > bad chars? If yes, my problem would be solved! No, I was thinking in the disabling of triggers ... -- Alvaro Herrerahttp://www.Com

Re: [ADMIN] Disabling triggers with psql (gforge 7.4 to 8.2 migration)

2010-02-10 Thread Alvaro Herrera
ers same way like with pg_restore > --disable-triggers? Or can we convert plain text dump to be processed > by pg_restore? Perhaps a table by table trigger disabling script? Have you tried using 8.2's pg_dump instead of the old one? -- Alvaro Herrera

Re: [ADMIN] VACUUM WARNING: skipping "pg_statistic" --- only table or database owner can vacuum it

2010-01-30 Thread Alvaro Herrera
onnect as superuser internally. Did you do something funny to the system role (typically called "postgres")? -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-admin mail

Re: [ADMIN] Finetuning Autovacuum

2010-01-04 Thread Alvaro Herrera
m all the time, it could be causing autovacuum to get killed and thus never completing, leading to catastrophic bloat. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql-admin@post

Re: [ADMIN] Question about replication options

2009-12-07 Thread Alvaro Herrera
e wrong. It means you cannot simply alter a replicated table on the origin and have it altered automatically on the replica (but you can do it with some manual labour). If you want to replicate a new set of tables, you can do that easily. I imagine you've already been flamed to death about

Re: [ADMIN] /usr/bin/ld: cannot find -lpq

2009-12-04 Thread Alvaro Herrera
and then compilation went smoothly and > I can now test the program. FWIW you should always prefer pg_config to help you get the right compile flags; something like gcc -I`pg_config --includedir` -L`pg_config --libdir` -lpq ... That gets you the right include and lib dirs. -- Alvaro Herre

Re: [ADMIN] recovery lag question

2009-11-13 Thread Alvaro Herrera
files as soon as they become available. How are you copying the files across? Maybe that process is getting stuck. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-admin m

Re: [ADMIN] postgres 8.4 autovacuum and XID wraparound

2009-11-10 Thread Alvaro Herrera
Anj Adu escribió: > Do I still need to run vacuumdb separately on 8.4 to reset the counter > with autovacuum turned on. No. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list

Re: [ADMIN] pg_autovacuum entries

2009-11-04 Thread Alvaro Herrera
Anj Adu escribió: > If I were to use autovacuum on 8.1 , and If I specify the "ignore' > tables in pg_autovacuum, > > 1. will the XID wraparound counter be reset after autovacuum finishes No. I think you really need to get off 8.1. -- Alvaro Herrera

Re: [ADMIN] vacuumdb knowledge of prior vacuum

2009-11-02 Thread Alvaro Herrera
Anj Adu escribió: > And autovacuum will reset the XID counter even if it skips tables > right? Just wanted to confirm before enabling autovacuum. On 8.2 and up, yes. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting,

Re: [ADMIN] vacuumdb knowledge of prior vacuum

2009-11-02 Thread Alvaro Herrera
Tomeh, Husam escribió: > How about if using autovacuum daemon instead? Autovacuum only processes tables that need vacuuming, per the configured parameters, so yes, it skips tables that were "recently" processed (where "recently" is defined by said parameters and operation

Re: [ADMIN] vacuumdb knowledge of prior vacuum

2009-11-02 Thread Alvaro Herrera
Anj Adu escribió: > Does vacuumdb have knowledge of a VACUUM that was done on a table in > the prior run and skip it the next time (assuming the table does not > change) ? No. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Comma

Re: [ADMIN] pg_autovacuum entries

2009-11-01 Thread Alvaro Herrera
and higher you can get away with doing it one table at a time. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscri

Re: [ADMIN] pg_autovacuum entries

2009-11-01 Thread Alvaro Herrera
write a simple script to vacuum a list of tables that you keep on a separate file or such. Something trivial like while read table; do vacuumdb -t $table done < /path/to/tablelist with proper error handling and reporting etc. -- Alvaro Herrerahttp://www

Re: [ADMIN] pg_autovacuum entries

2009-10-30 Thread Alvaro Herrera
er ( ... ); INSERT INTO pg_autovacuum VALUES ('whatever'::regclass, false, -1, -1, ...); -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make

Re: [ADMIN] [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-admin mailing list (pgsql-admin@postgresql.org) To make changes to your sub

Re: [ADMIN] Increasing the length of a VARCHAR column without table rewrite

2009-10-23 Thread Alvaro Herrera
particular problem of widening a column's max length. (When playing with this, however, note that the modified table may need a toast table that may not be there). -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.

Re: [ADMIN] Vacuum Full - stops responding(?)

2009-10-20 Thread Alvaro Herrera
?  It's not based on the sort code, unless someone rewrote it > > since I looked last.  It's an index scan and will definitely depend on > > the index ordering. > > Er, uh, of course. I wonder what I was thinking. Your patched version of course. -- Alvaro Herrera

Re: [ADMIN] vacuumdb in parallel

2009-10-15 Thread Alvaro Herrera
Simon Riggs escribió: > On Wed, 2009-10-14 at 13:57 -0300, Alvaro Herrera wrote: > > Anj Adu escribió: > > > > > I have several "daily" tables that get dropped every day..Is there a > > > wildcard that I can use to tell vacuumdb NOT to vacuum those &

Re: [ADMIN] vacuumdb in parallel

2009-10-14 Thread Alvaro Herrera
Anj Adu escribió: > I have several "daily" tables that get dropped every day..Is there a > wildcard that I can use to tell vacuumdb NOT to vacuum those > tables... No. You need to do "INSERT INTO pg_autovacuum" (or ALTER TABLE/SET in 8.4) just after you've crea

Re: [ADMIN] XID wraparound in 8.4

2009-10-13 Thread Alvaro Herrera
ot going to be limited to autovacuum; regular vacuum is going to be affected too. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To mak

Re: [ADMIN] Postgresql 8.4 pam

2009-09-29 Thread Alvaro Herrera
Jakub Gołębiewski escribió: > when i try to connetc from remote host I get information: psql: FATAL: PAM > authentication failed for user "golebiej" Please try psql -W -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Com

Re: [ADMIN] recovery is stuck when children are not processing SIGQUIT from previous crash

2009-09-25 Thread Alvaro Herrera
en > used by glibc to implement some pthreads stuff. Anyone know more? Maybe a backtrace from GDB would tell us more. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-admin m

Re: [ADMIN] How to mask password when using ALTER USER syntax in psql.

2009-09-10 Thread Alvaro Herrera
Perhaps you could try \password in psql. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to yo

Re: [ADMIN] server disk space

2009-09-07 Thread Alvaro Herrera
gt; But when I use ps: > > postgres 8563 15633 0 Sep05 ?00:05:01 postgres: tracker > trackerData [local] VACUUM Maybe your vacuum_cost_delay settings are too high? What do you have them set to? -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL R

Re: [ADMIN] postgres processes not reflected in pg_stat_activity

2009-09-04 Thread Alvaro Herrera
Lee, Mija escribió: > Hi - > Thanks for the response. > I'm on solaris so the ps ax doesn't work for me. I think the equivalent > is ps -ef which shows: hmm, did you try /usr/ucb/ps? -- Alvaro Herrerahttp://www.CommandPrompt.com/ The Postgr

Re: [ADMIN] Postgresql.conf getting corrupted

2009-08-31 Thread Alvaro Herrera
he config file is not opened for writing normally. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Sharing /etc/passwd with PostgreSQL

2009-08-20 Thread Alvaro Herrera
Tom Lane wrote: > Alvaro Herrera writes: > > BTW I notice that this does not work unless the client supplies the > > password the first time around; psql does not retry. It only works if I > > do "psql -W". > > Huh, that sounds like a bug someplace. Care to

Re: [ADMIN] text cast on regprocedure fails on 8.2

2009-08-20 Thread Alvaro Herrera
-> text. Is there > a way to add it in 8.2? You can do this: SELECT DISTINCT 'DROP FUNCTION ' || textin(regprocedureout(p.oid::regprocedure)) || ' CASCADE;' FROM pg_catalog.pg_proc p LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace WHERE n.nspname = current_sc

Re: [ADMIN] vacuum full questions

2009-08-18 Thread Alvaro Herrera
ted. This is an unfixable bug (short of rewriting vacuum full from scratch) and has been reported in the wild several times. -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql

Re: [ADMIN] createdb - problem with encodings

2009-08-17 Thread Alvaro Herrera
server's LC_CTYPE setting requires encoding LATIN1. What's your operating system? -- Alvaro Herrerahttp://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org

Re: [ADMIN] Vacuum Issue 8.2

2009-08-14 Thread Alvaro Herrera
s" TID 31/31: InsertTransactionInProgress > 4060299835 --- can't shrink relation VACUUM > > What does this mean? Internal affairs. Ignore it. -- Alvaro Herrerahttp://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7

  1   2   3   4   5   6   >