Re: [ADMIN] move dbs from 8.1 to 8.4

2013-10-10 Thread Steve Crawford
nd performance improvements that have been made in the several years since 8.4 was released. Cheers, Steve

Re: [ADMIN] RPM 9.1

2013-06-04 Thread Steve Crawford
/redhat/rhel-6-x86_64/pgdg-centos91-9.1-4.noarch.rpm I just did exactly that upgrade earlier this week albeit for the client-side only. Don't use 9.2 if you are looking for 9.1. Cheers, Steve

Re: [ADMIN] Big UPDATE breaking replication

2013-06-04 Thread Steve Crawford
My interpretation is that if your kernel enforces things properly you don't need to worry. If it doesn't, reduce your max_connections and/or max_files_per_process as needed. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your sub

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

2013-05-28 Thread Steve . Toutant
t > ERROR: exceeded MAX_ALLOCATED_DESCS while trying to open file > "/srv/www/data/antidote/registre.csv" > > What is it MAX_ALLOCATED_DESCS? and how can I modify it without changing > the code and re-compile? I tried using postgref.conf but this parameters > is

[ADMIN] exceeded MAX_ALLOCATED_DESCS while trying to open file

2013-05-28 Thread Steve . Toutant
recognize. thanks steve

Re: [ADMIN] Copy one database to another server

2013-05-02 Thread Steve Crawford
as Slony and many can migrate a single database or even specific table(s). Cheers, Steve -- 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] Postgres 9.1 statistics in pg_stat_database

2013-02-07 Thread Steve Crawford
se if I just wait a minute or two but the number of those transactions, while visible on an idle system, is lost in the noise on a busy database. Other things that generate transactions include connecting to the database (one, it appears) but \d in psql appears to generate a minimum of f

Re: [ADMIN] Massive table bloat

2012-12-11 Thread Steve Crawford
ltimately it is their responsibility to make the decision whether or not to upgrade. It is your responsibility to provide the data necessary to help them make an informed choice. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your sub

Re: [ADMIN] Massive table bloat

2012-12-11 Thread Steve Crawford
ts fork pg_repack (https://github.com/reorg/pg_repack) which essentially do the copy to a new table in the background then briefly lock the tables to apply any recent changes from the master before dropping the copy into place. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admi

Re: [ADMIN] Fwd: Monitoring Replication on Master/Slave Postgres(9.1)

2012-11-28 Thread Steve Crawford
On 11/28/2012 11:24 AM, Shams Khan wrote: Thanks for the response Steve...It was really helpful: Below are some doubts I wanted to clarify..please read and suggest. Can we also check if replication was broken earlier...somehow due to power failure of some other reasons in past...The reason I

Re: [ADMIN] Fwd: Monitoring Replication on Master/Slave Postgres(9.1)

2012-11-28 Thread Steve Crawford
ere name='transaction_read_only'; \o \i ${tempquery} EOS ) # Cleanup temp file test -f "${tempquery}" && rm "${tempquery}" # Do some alert based on the number of seconds of lag between master and standby here Cheers, Steve -- Sent via pgsql-admin mailing lis

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-09-28 Thread Steve Crawford
On 09/27/2012 07:01 PM, Greg Williamson wrote: Steve (and others who replied): ... The other is a slimmed-down version of our production database, which gets recreated hourly by a shell script which pulls data from remote servers, does a pg_dump of the resulting 3 gig database, and then drops

Re: [ADMIN] Database size stays constant but disk space keeps shrinking -- postgres 9.1

2012-09-27 Thread Steve Crawford
heir disk space until the process exits. Perhaps a script or scripts, even one of your hourly ones, that terminate when the server restarts? You could save the output of lsof and ps immediately before and after a restart and compare them. Let us know what you find. Cheers, Steve -- Sent

[ADMIN] Upgrading and streaming replication

2012-09-25 Thread Steve Crawford
/static/release-9-1-6.html nor news http://www.postgresql.org/about/news/1416/ indicate that any special handling is required on standby servers. Can anyone confirm if that is correct or, if not, what additional steps are prudent? Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin

Re: [ADMIN] dropping a large table is taking a very long time (about 2 hours so far)

2012-09-24 Thread Steve Crawford
. One possibility is a running backup. Cheers, Steve -- 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] changes to postgresql.conf

2012-09-24 Thread Steve Crawford
ee do not and, in fact, can be set by a user on a per-connection basis. Cheers, Steve -- 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] Postgres Cache usage

2012-09-19 Thread Steve Crawford
tion setup time will become an issue so connection-pooling and persistent connections will be useful. Cheers, Steve

Re: [ADMIN] Messed up time zones

2012-08-03 Thread Steve Crawford
ica/Los_Angeles'. -07 is an offset, 'America/Los_Angeles' is a time zone and deals appropriately with Daylight Saving Time and the various changes thereto through history. Should it be necessary, you could save time zone information in a separate column. Note that you can specify tim

Re: [ADMIN] standby with a fixed lag behind the master

2012-07-26 Thread Steve Crawford
her than just a pre-defined n-hours? I'm currently looking at using the recently announced pgbarman to simplify the overall process. (http://www.pgbarman.org/) Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http:

Re: [ADMIN] saved passwords lost when connection fails

2012-05-29 Thread Steve Crawford
this will raise a host of security problems. Cheers, Steve -- 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] introduction

2012-05-25 Thread Steve Crawford
they had heard of a client "who did this once". They had no idea what slony means. So I am not feeling so warm and fuzzy about them. Good call. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgres

Re: [ADMIN] Backup/disaster recovery and bandwidth (long)

2012-04-25 Thread Steve Crawford
the developers). Perhaps 9.2 final will be released before your database grows too big for current solutions. Cheers, Steve

Re: [ADMIN] Cannot Connect To Db From Local Server

2012-04-18 Thread Steve Crawford
127.0.0.2 for its address)? The "unsupported frontend protocol" leads me to believe that the network connection is succeeding but the client-server conversation thereafter is incorrect or absent. Cheers, Steve

Re: [ADMIN] utf8 database not dumping utf8 characters

2012-04-06 Thread Steve Crawford
t;, ":set encoding" and ":set fileencoding". Cheers, Steve -- 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] utf8 database not dumping utf8 characters

2012-04-06 Thread Steve Crawford
mp program to see the actual bytes in the file and determine if they are what you expect for UTF8. Cheers, Steve

Re: [ADMIN] about encoding

2012-04-02 Thread Steve Crawford
are still stuck after checking/fixing the above you could actually have bad data in your input or, possibly, an incorrect byte-order issue though that is unlikely in most situations. Cheers, Steve

Re: [ADMIN] pg_attribute file in PostgreSQL 9.0

2012-03-07 Thread Steve Crawford
ersion of PG? OS? Is the database able to start? Are you attempting to connect as a superuser? With this as a starting point you may get some valuable advice (though from those people far more capable of answering this question than I). Cheers, Steve -- Sent via pgsql-admin maili

Re: [ADMIN] pg_attribute file in PostgreSQL 9.0

2012-03-07 Thread Steve Crawford
de is: "Name of the on-disk file of this relation; zero means this is a "mapped" relation whose disk file name is determined by low-level state" However the meaning "mapped relation" and "low-level state" are difficult to divine from the docs. Go with

Re: [ADMIN] Big difference in databasesize compared with disksize

2012-02-17 Thread Steve Crawford
uot;, in their Filenodes. Since you are getting different results from the OS tools (ls, du) on an XFS system I'd check for info on XFS lists. Googling "xfs du ls size difference" gives about 95,000 pages related to this issue. Cheers, Steve -- Sent via pgsql-admin mailing l

Re: [ADMIN] overcoming a recursive relationship in a sql statement

2012-02-01 Thread Steve Crawford
ne project but partners on another - a not unusual situation. You could also include valid dates for relationships or whatever else you deem necessary. Given the appropriate recursive query, you could build a full tree of partnerships for a given organization/project. Cheers, Steve

Re: [ADMIN] Use a custom postgresql.conf?

2011-11-29 Thread Steve Crawford
wiki page may be of help: http://wiki.postgresql.org/wiki/PostgreSQL_on_RedHat_Linux Cheers, Steve

Re: [ADMIN] setting timezone

2011-11-09 Thread Steve Crawford
On 11/09/2011 11:41 AM, Geoffrey Myers wrote: Geoffrey Myers wrote: Tom Lane wrote: Steve Crawford writes: On 11/09/2011 05:10 AM, Geoffrey Myers wrote: Is there a way to retain this information from the original database when reloading? Time-zone setting is an attribute of the server

Re: [ADMIN] setting timezone

2011-11-09 Thread Steve Crawford
.conf. Clients can override the default server setting with "SET TIMEZONE TO ...;" which is useful when a single server is supporting users across many time zones. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http

Re: [ADMIN] min duration logging

2011-10-11 Thread Steve Crawford
the queries you run longer than 450ms? #log_statement = 'all' I don't know what the config looked like beforehand but did you reload PostgreSQL after changing it? You can check the current running settings with "show all;" Cheers, Steve -- Sent via pgsql-admin

Re: [ADMIN] currval()

2011-09-20 Thread Steve Crawford
select statement was wrong. I needed to SELECT currval('jobs_id_seq') not the field name, which I was doing. Yes, this is probably the real root of your problem. I did not notice that since I didn't have the table definition in front of me. Cheers, Steve

Re: [ADMIN] currval()

2011-09-20 Thread Steve Crawford
..@mail.com', '2', 'This position mostly tutors, instructs, or directly assists students. Less than half of the position tasks are clerical or support duties.', '10', '28', 'all', '70%', '09-20-2011');SELECT currval(id); Marc You are combining two statements into one - this is not correct. Not sure why you can't use returning - it works for me (where bar is some text and fooid is serial): insert into footest (bar) values ('abcde') returning fooid; But if you really can't, then just execute the two statements sequentially: insert into.; select currval('id'); Cheers, Steve

Re: [ADMIN] pg_upgrade difficulties

2011-09-14 Thread Steve Crawford
On 09/14/2011 08:48 AM, Steve Crawford wrote: On 09/13/2011 05:31 PM, Tom Lane wrote: Steve Crawford writes: waiting for server to start../usr/pgsql-9.1/bin/pg_ctl: symbol lookup error: /usr/pgsql-9.1/bin/pg_ctl: undefined symbol: PQping There were problems executing "/usr/pgsql-9.

Re: [ADMIN] pg_upgrade difficulties

2011-09-14 Thread Steve Crawford
On 09/13/2011 05:31 PM, Tom Lane wrote: Steve Crawford writes: waiting for server to start../usr/pgsql-9.1/bin/pg_ctl: symbol lookup error: /usr/pgsql-9.1/bin/pg_ctl: undefined symbol: PQping There were problems executing "/usr/pgsql-9.1/bin/pg_ctl" -w -l "upgrade.log"

[ADMIN] pg_upgrade difficulties

2011-09-13 Thread Steve Crawford
[FAILED] [root@foo ~]# service postgresql-9.1.0 initdb postgresql-9.1.0: unrecognized service [root@foo ~]# service postgresql-9.1 initdb Initializing database: Any thoughts? Cheers, Steve -- 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] PostgreSQL fails to bind IPv6 socket at startup on AIX platform

2011-08-11 Thread Steve Singer
On 11-08-11 02:24 PM, CS DBA wrote: Hi All; we're trying to get PostgreSQL configured on an AIX box (AIX version 5). After some digging & adding various paths to LD_LIBRARY_PATH (Thanks to help from Tom Lane) we were able to complete the source based build. However, when we try and start the

Re: [ADMIN] How frequently to defrag(cluster)

2011-07-20 Thread Steve Crawford
On 07/20/2011 02:04 PM, Steve Crawford wrote: On 07/20/2011 12:58 PM, A J wrote: I understand that 'cluster' performs the role of defrag ... As with everything the answer is "it depends". For a "typical" workload where the rows updated by a single query are one

Re: [ADMIN] How frequently to defrag(cluster)

2011-07-20 Thread Steve Crawford
appropriate solution as well. You may also get tips on avoiding some common pitfalls that can prevent PostgreSQL from showing its full potential. Cheers, Steve

Re: [ADMIN] could not open relation with OID

2011-07-13 Thread Steve Crawford
On 07/13/2011 04:32 PM, Tom Lane wrote: Steve Crawford writes: I've seen the "could not open relation with OID" error a couple times recently ... Not worry You might be able to dodge the problem by excluding temp relations from the reporting query, though whether the sum o

[ADMIN] could not open relation with OID

2011-07-13 Thread Steve Crawford
processes that use temporary tables (there are currently 35 pg_temp_XX schemas with the highest being pg_temp_55) So... Worry or not worry? Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: R: Re: [ADMIN] Install postgreSQL 9.0 in Linux Ubuntu 9.10

2011-07-07 Thread Steve Crawford
On 07/07/2011 08:29 AM, francescobocca...@libero.it wrote: Hi, i tried to run : /postgresql-9.0.4-1-linux.bin but i received segmentation fault error. So i think, after Steve reply, that the best way to install postgresql 9.0 is to install Ubuntu 10.04. Am i right? Thanks for your help, Best

Re: [ADMIN] Install postgreSQL 9.0 in Linux Ubuntu 9.10

2011-07-07 Thread Steve Crawford
source you may have difficulty updating your system to install anything needed since 9.04 is no longer supported by Ubuntu. Cheers, Steve -- 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] Who is causing all this i/o?

2011-05-20 Thread Steve Crawford
u will need to clean each one. Reset stats collector at startup. Check system after each change and report back if anything improves or degrades the situation. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www

Re: [ADMIN] unix timestamp

2011-04-22 Thread Steve Crawford
12/17/2010'; Thanks Marc If by "unix timestamp" you mean epoch, just extract the epoch from your date or timestamp: steve=# select extract(epoch from date '12/17/2010'); date_part ---- 1292572800 Cheers, Steve

Re: [ADMIN] Freebsd/Postgres/Apache+PHP

2011-03-31 Thread Steve Crawford
connection statement are you using? Cheers, Steve -- 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] full vacuum of a very large table

2011-03-29 Thread Steve Crawford
quirements, foreign-key constraints or the like. If availability is truly critical, be sure to test whatever approach you take in advance. Cheers, Steve -- 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] full vacuum of a very large table

2011-03-29 Thread Steve Crawford
year?) child table. When the time comes, just archive and drop the child. Cheers, Steve -- 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] Best Linux filesystem for Postgres data store ?

2010-12-01 Thread Steve Francis
est and monitor. --  Steve Francis LogicMonitor LLC sfran...@l

Re: [ADMIN] Pre-Allocate tablespace on disk

2010-11-19 Thread Steve Francis
Berkeley DB comes to my mind) would create heavily fragmented files. --  Steve Francis LogicMonitor

Re: [ADMIN] Postgres log file

2010-10-15 Thread Steve Francis
tgres server itself? Thanks! --  Steve Francis LogicMonitor

Re: [ADMIN] [HACKERS] HS/SR on AIX

2010-08-27 Thread Steve Singer
res on the replica does it make a difference? How about with a LIBPATH=/apps/pg_9.0_b4/lib/postgresql (I'm not exactly sure where libpq.a is on your install) Alanoly. -- Steve Singer Afilias Canada Data Services Developer 416-673-1142 -- Sent via pgsql-admin mailing list (pgsql-admin

Re: [ADMIN] psql shell with no password prompt

2010-07-27 Thread Steve . Toutant
Thanks Kevin, Which of these 2 methods is the best practice? It is working with pgpass. But not yet with hba.conf I tried this without success. hostall all 127.0.0.1/32 trust steve "Kevin Grittner" 27/07/2010 01:17 PM A , cc Objet Re: [ADMIN]

[ADMIN] psql shell with no password prompt

2010-07-27 Thread Steve . Toutant
admin. How to avoid that? I guess there is a config so dbadmin will "trust" this new user Thanks for your help, Steve

Re: [ADMIN] pg_restore error

2010-04-17 Thread Steve Crawford
and more tips at: http://it.toolbox.com/blogs/database-soup/using-84-parallel-restore-with-your-83-or-82-database-31575 Cheers, Steve -- 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] pg_restore error

2010-04-17 Thread Steve Crawford
rrent releases of the dump programs can read data from any server version back to 7.0." How many cores are available on the new server? Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

[ADMIN] regarding postgreSql Admin position

2010-04-06 Thread STEVE NAYAM
Hello This is Steve Nayam from MRS. I am looking for Postgresql DBA consultant. I just want to know if you can help me in this regard, can I post jobs here. Thank you Regards, Steve Nayam Business Development Manager Maple Resource Specialists (MRS) 973-494-5751 - USA

[ADMIN] pg_stat: last vacuum and analyze times are not being updated - v8.3.5

2010-03-23 Thread Steve Jones
n see) and this is correctly keeping the stats up to date. The only difference is postgres has been running well over a year on the server with the issue. Many thanks in advance, Steve Jones

Re: [ADMIN] Just wanted to say thanks for a great tool

2009-11-20 Thread Steve Crawford
have either a contact or submit-story link. There is also a separate "advocacy" mailing list. Cheers, Steve Mary Anderson wrote: Me too. we have been using PostreSQL for three years now in the demography department at UC Berkeley. It is great. My specs from my academic boss we

Re: [ADMIN] WAL file compatibility

2009-10-25 Thread Steve Crawford
ppear to work for a while until it suddenly doesn't? Cheers, Steve -- 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] pg_attribute size

2009-10-25 Thread Steve Crawford
les/columns? Try (as the database administrator), "vacuum full pg_attribute" perhaps followed by "reindex table pg_attribute". Be aware that this may pretty much lock your database while it is running. See if things improve then do as Tom says - make sure autovacuum is r

Re: [ADMIN] idle connections

2009-10-06 Thread Steve Crawford
complete meltdown in real life because all the modem users kept processes occupied for long periods while the data dribbled back and the server maxed out on available threads/processes. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your

Re: [ADMIN] idle connections

2009-10-06 Thread Steve Crawford
traffic to deplete your available pg connections in seconds, not minutes so keep digging. Cheers, Steve -- 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] idle connections

2009-10-05 Thread Steve Crawford
ve to check those as well. Perhaps look at the connection start time in PG and try to correlate it with a request in your webserver log. I assume you would have told us if you are running pgbouncer or similar pooling solution as that would be an obvious cause. Cheers, Steve -- Sent via pgsql-admin

Re: [ADMIN] CSV Utility

2009-08-06 Thread Steve Crawford
csvfilename CSV delimiter '|' or export data (tab-delimited): copy foo to stdout CSV DELIMITER E'\t'; Cheers, Steve -- 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] error from postgresql 8.4.0 after a dump/restore from 8.3.5

2009-08-05 Thread Steve Crawford
lfrozenxid | xid | not null relacl | aclitem[] | reloptions | text[]| Cheers, Steve -- 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] Help! Upgrade to 8.4 dropped my databases

2009-08-04 Thread Steve Crawford
/init.d/ and /etc/postgresql/ for starters). I'm guessing you may find both versions are available but your boot configuration is starting the wrong one. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresq

Re: [ADMIN] Database Import..Please Help Me

2009-06-16 Thread Steve Crawford
ngs like schema-only, data-only, specific tables, etc. If the data is not a PostgreSQL created dump, you need to do some work yourself. For example, if it is a CSV file you need a table with the correct columns and you can use psql and the copy command with the csv option. Cheers, Steve

Re: [ADMIN] Urgent PST time changing tonight

2009-03-09 Thread Steve Crawford
ernally for feeding into your database-backed processes (for fun, try "-d yesterday" and "-d tomorrow" in most versions of the "date" command in the vicinity of DST changes). Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make chan

Re: [ADMIN] check to see when tables were last vacummed

2009-01-19 Thread Steve Crawford
vacuum and last_autovacuum columns. I don't know when those columns were added. I don't see them in 8.1 and don't have 8.2 available at the moment. Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.post

Re: [ADMIN] primary key and insert

2008-12-11 Thread Steve Crawford
e') to automatically generate a new value for each record). A primary key could be a serial, but doesn't have to be. A serial can be a primary key but doesn't have to be. Note: due to things like transaction rollbacks, a serial column will have unique IDs generated but they are not

[ADMIN] Connection Limit Exceeded

2008-12-09 Thread Steve Kecskes
Hi, Just wondering what actually happens when the connection limit exceeds. Dec 10 05:19:45 pallas1 postgres[373]: [2-1] FATAL: connection limit exceeded for non-superusers Are the requests that are rejected pooled and processed when connection slots are available? -- Sent via pgsql-admin ma

Re: [ADMIN] PostgreSQL Database freezes during backup then generates drwtsn.exe process

2008-12-02 Thread Steve Crawford
hat drwtsn.exe is some form of malware - Google for more info. Before proceeding with PostgreSQL troubleshooting, I'd make sure that the machine itself is fully cleansed and checked. Cheers, Steve

Re: [ADMIN] [HACKERS] Monitoring postgres

2008-10-06 Thread Steve Crawford
onitoring tools such as Hyperic that have PostgreSQL plugins: http://www.hyperic.com/products/managed/postgresql-management.htm Cheers, Steve -- 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] What process clears the logs?

2008-09-30 Thread Steve Crawford
tions regarding write-ahead logging may be found here: http://www.postgresql.org/docs/8.3/interactive/wal-configuration.html Cheers, Steve -- 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] What process clears the logs?

2008-09-30 Thread Steve Crawford
nk that if you are using archive_command setting to archive WAL files the archive command does not return "success", then the WAL file will not be removed/reused. Cheers, Steve -- 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] Do we need vacuuming when tables are regularly dropped?

2008-09-29 Thread Steve Crawford
Tom Lane wrote: Steve Crawford <[EMAIL PROTECTED]> writes: [EMAIL PROTECTED]> CLUSTER pg_class USING pg_class_oid_index ; ERROR: "pg_class" is a system catalog I think the DB is probably protecting you from yourself here ;-). And elsewhere. :) I wasn't ad

Re: [ADMIN] Do we need vacuuming when tables are regularly dropped?

2008-09-29 Thread Steve Crawford
r mode): [EMAIL PROTECTED]> CLUSTER pg_class USING pg_class_oid_index ; ERROR: "pg_class" is a system catalog Should the docs (http://www.postgresql.org/docs/8.3/interactive/sql-cluster.html) be updated to note this restriction? Cheers, Steve -- Sent via pgsql-admin mailin

Re: [ADMIN] Do we need vacuuming when tables are regularly dropped?

2008-09-29 Thread Steve Crawford
discovered that cron scripts using temporary tables can cause very rapid system-table blotage. Cheers, Steve -- 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] Hex representation

2008-09-25 Thread Steve Martin
: Steve Crawford Cc: Scott Marlowe; pgsql-admin@postgresql.org Subject: Re: [ADMIN] Hex representation Well, it was a bit convoluted, but I created the file with Excel, filling the right number of cells with \x55. This worked too. The script wouldn't run for me. I got an error about a

Re: [ADMIN] Hex representation

2008-09-25 Thread Steve Crawford
Scott Marlowe wrote: I used this very simple little php script to make this filename: mk55: #!/usr/bin/php -q Or, using standard *nix tools (Note: 0x55 = ascii U): dd bs=1k count=256 if=/dev/zero | tr '\000' U > full_of_0x55 Cheers, Steve -- Sent via pgsql-admin mailin

Re: [ADMIN] Postgres && Swap

2008-09-17 Thread steve
Is there any negative effects by doing this? The swappiness is sitting on the default 60 at the moment. On Wed, 17 Sep 2008 00:46:13 -0600, "Scott Marlowe" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 16, 2008 at 11:30 PM, <[EMAIL PROTECTED]> wrote: >> Hi All >> >> >> I recently made a change to my

[ADMIN] Postgres && Swap

2008-09-16 Thread steve
? Cheers Steve. -- 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] [GENERAL] FW: How to upload data to postgres

2008-09-10 Thread Steve Holdoway
Why not just export as 'insert into (... ) values (...)' format. If ingres can't export as such, you can write a select statement to do this. Slow, sure - but the lowest common denominator. Steve On Wed, 10 Sep 2008 11:27:58 -0400 "Markova, Nina" <[EMAIL PROTECTED

Re: [ADMIN] Database Conversion

2008-09-04 Thread Steve Holdoway
t you want in a simple, repeatable manner. If it's mysql 5 then the stored procedures may need to be converted - I know there are tools out there, but haven't used them and can't comment. Steve -- Steve Holdoway <[EMAIL PROTECTED]> -- 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] WAL files during a backup

2008-08-28 Thread steve
WAL's. You can add the current X log to the WAL and recover your DB to its existing state. On Thu, 28 Aug 2008 05:24:56 -0700 (PDT), [EMAIL PROTECTED] wrote: > Thanks Steve. > > If I understand your comment regarding the 16MB limit, it means I should > not worry about the WAL file

Re: [ADMIN] Installing PostgreSQL 8.3.3. on Vista

2008-08-28 Thread Steve Holdoway
Looks like the relevant Visual C runtime library ( VC80.CRT 32 bit ) needs installing first... Steve On Thu, 28 Aug 2008 09:42:54 -0500 "Brandon Dybala" <[EMAIL PROTECTED]> wrote: > I tried installing PostgreSQL 8.3.3 on Vista Business, and initdb failed > to start duri

Re: [ADMIN] WAL files during a backup

2008-08-27 Thread steve
ready knows.? On Wed, 27 Aug 2008 13:49:13 -0700 (PDT), [EMAIL PROTECTED] wrote: > Steve, thanks for your response and your question. > > Ok, here is some clarification on the WAL file name used in the example > below. > > The WAL file name I used in the example is actually > 000

Re: [ADMIN] WAL files during a backup

2008-08-27 Thread steve
0001223387 would usually be the next WAL to be written. How often are you WALs written out? On Wed, 27 Aug 2008 07:07:17 -0700 (PDT), [EMAIL PROTECTED] wrote: > I have a question regarding the WAL files that are moved during a backup to > the "archive directory". > > I have setup

Re: [ADMIN] PITR - base backup question

2008-08-26 Thread steve
Hi Richard, This means a file systems backup. eg. tar -cvpf data_bakup.tar /var/lib/pgsql/data Here's a script I use to automate this process. It may be helpful to customize for yourself. #!/bin/bash # # PostgreSQL Weekly Backup # DATE=$(date +%G%m%d) MAILLOG="/backup/weekly_$DATE.log" WALAR

Re: [ADMIN] Logs perms and ownership

2008-08-25 Thread steve
Correction, perms are 600. On Mon, 25 Aug 2008 19:22:45 -0700, Joshua Drake <[EMAIL PROTECTED]> wrote: > On Tue, 26 Aug 2008 14:11:13 +1200 > Steve Holdoway <[EMAIL PROTECTED]> wrote: > >> On Tue, 26 Aug 2008 10:42:19 +1000 >> <[EMAIL PROTECTED]> wrote: >

Re: [ADMIN] Logs perms and ownership

2008-08-25 Thread steve
Yeah, thought about that but as you said the perms on the logs are 700. on both stderr and syslogging. On Mon, 25 Aug 2008 19:22:45 -0700, Joshua Drake <[EMAIL PROTECTED]> wrote: > On Tue, 26 Aug 2008 14:11:13 +1200 > Steve Holdoway <[EMAIL PROTECTED]> wrote: > >> O

Re: [ADMIN] Logs perms and ownership

2008-08-25 Thread Steve Holdoway
or ownership > > > Thanks > > Steve > > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin Add that user to the postgres group? -- Steve Holdoway <[EMAIL PRO

[ADMIN] Logs perms and ownership

2008-08-25 Thread steve
Hi all, Is there a way to make the postgres logs readable by other users or a group apart from postgres:postgres? I am on postgres 8.1 I cannot see any feature to allow setting perms or ownership Thanks Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes

Re: [ADMIN] DB Dump Size

2008-08-17 Thread steve
I am also curious as to why an SQL dump from the production server would come out to 2.8G but a dump of an exact replica on a test box would come out to 3.0G. What determines the size and makeup of an SQL dump? Cheers. Steve. On Fri, 15 Aug 2008 12:24:32 +0200, Tino Schwarze <[EMAIL PROTEC

Re: [ADMIN] New postgres installation

2008-08-15 Thread Steve Crawford
ql, pg_dump, etc. (I did say "accidentally". If everyone is clued in, you can have multiple versions of PG running on the same machine. If not, you will be answering questions due to the unexpected behavior.) Cheers, Steve -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.o

Re: [ADMIN] DB Dump Size

2008-08-14 Thread steve
Nice, that has cleared it up. I am on 8.1 also. On my test box, a standard dump took 6m 26sec & a -Fc dump took 11min 2sec. That's not a great difference, but the size difference is quite noticeable. Thanks for your help. Steve. On Fri, 15 Aug 2008 02:15:25 +0200, Thomas Jaco

  1   2   3   >