Re: [ADMIN] top posting?

2013-05-07 Thread robin
at whatever reader they use, everyone can cope with messages that are as short as reasonably possible and contain just relevant text, whether new or quoted - and there seems to be a consensus that this is what is important, not whether your comments are at the top or bottom. Thanks, Robin

Re: [ADMIN] my query is so slow,It costs 944,319.072 ms,Can someone Help!!

2013-01-04 Thread robin
anner will immediately use the index after you've created it - you might have to run analyze on the ap_attribute table first. Hope this helps, Robin -- 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] Giant Postgresql Database Cluster Folder

2012-04-10 Thread robin
helps, Robin On Tue, 10 Apr 2012 11:44:08 +0530, raghu ram wrote: On Tue, Apr 10, 2012 at 11:21 AM, Kiruba suthan wrote: Could you help me how to clean up DB Cluster folder and reclaim disk space please? And please give me some insight into how data is organized in DB Cluster and what should I

Re: [ADMIN] Update actions (with user name) inside PostgreSQL DB - any version on postgreSQL

2012-03-14 Thread Robin Iddon
t tuples_only dbname=>\o |/bin/bash dbname=>select 'id'; uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) There are many more sophisticated examples. The only solution is not to grant sudo to anyone you wouldn't grant root to. Cheers,

Re: [ADMIN] Update actions (with user name) inside PostgreSQL DB - any version on postgreSQL

2012-03-14 Thread Robin Iddon
reate an audit trail by adding in username capture in the software is doomed to being circumvented by anybody with root access who doesn't want to be traced. For example: robin$ su - root root# su - kgama kgama$ su - root ... do something bad. Now it looks like you did it, even though it was

Re: [ADMIN] Update actions (with user name) inside PostgreSQL DB - any version on postgreSQL

2012-03-14 Thread Robin Iddon
What do you want to have happen to the timestamp/user? You can obviously do: update test set t4 = 9, user = , timestamp = where t1 = 001; I'm assuming you're trying to store the user and timestamp somewhere else, though? Robin On Wed, 2012-03-14 at 12:44 +0200, Khangelani

Re: [ADMIN] Database corrupted

2011-12-05 Thread Yann ROBIN
On Mon, Dec 5, 2011 at 9:53 PM, Tom Lane wrote: > > There are interlocks against that ... although if you were foolish > enough to manually remove postmaster.pid, you could defeat them :-( > We didn't remove postmaster.pid -- Yann -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.o

Re: [ADMIN] Database corrupted

2011-12-05 Thread Yann ROBIN
> > First things first: Before you do anything else, shut down > PostgreSQL and make a copy of the data directory tree. > > http://wiki.postgresql.org/wiki/Corruption > Did it. > Second, please post information about your environment.  What > version of PostgreSQL is this?  What is your OS?  What

[ADMIN] Database corrupted

2011-12-05 Thread Yann ROBIN
Hi, Earlier this afternoon, our database crash with a stacktrace. We killed hardly the remaining postgres process left. Since then it's been hell !!! First Postgres told us that there was a corrupted index and we needed to reindex it. We couldn't do it because there was duplicate id in the table.

Re: [ADMIN] implement BLP model on Postgresql db

2010-12-02 Thread robin
gt; >     Please let me know how I could start working on my thesis. > One would hope _you_ would know that ... else why are you doing it. All the documentation will be on the main postgres site, as is the source code: http://lmgtfy.com/?q=postgres+documentation http://lmgtfy.com/?q=p

Re: [ADMIN] Vacuum Full (PG 8.1) - Urgent help needed - Cancel & transaction "liberation"

2010-04-16 Thread robin
onstrained) you might want to revert that parameter. Cheers, Robin On Fri, 16 Apr 2010 15:56:03 -0400, Alexandre Leclerc wrote: > Le 2010-04-16 15:44, Tom Lane a écrit : >> "Kevin Grittner" writes: >> >>> "Joshua D. Drake" wrote: >>>

Re: [ADMIN] Strange deletion problem

2010-03-31 Thread robin
e sure which order the queries were inserted, although if you're using statement level logging, you'll should see distinct query and backend start timestamps anyway. Just an idea - never tried it myself - so probably best to test it out on a test database of some sort first! Cheers, Ro

Re: [ADMIN] %psql help

2006-07-06 Thread Robin Iddon
don't think that the psql \c command allows you to bypass pg_hba configuration, so I wonder if your pg_hba.conf file is broken - have you tried psql ? I am pretty sure that there is little or no difference between: psql and \c Cheers, Robin KyLiE wrote: Hi all, I'm quiet n

Re: [ADMIN] autovacuum

2006-06-15 Thread Robin Iddon
ocs. Hope this helps, Robin ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [ADMIN] defining Your own sort order for already compiled PostgreSQL

2006-05-23 Thread Robin Iddon
s are frozen for the cluster (except that you can change the encoding for a specific database within the cluster, but that isn't going to do what you want, which is change the sort order). So, if you can re-run initdb then you can do what you want without recompiling. See "man initdb

Re: [ADMIN] Unkillable Backend Processes

2006-05-23 Thread Robin Iddon
in the same way). Unless you really need the NFS mount I might be inclined to turn it off for a while and see what happens ... Cheers, Robin ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [ADMIN] Backing up large databases

2006-04-28 Thread Robin Iddon
isks). I don't think it matters how long it takes to make the base backup, provided you are always copying the WAL files too. Hope this helps, Robin Steve Burrows wrote: I am struggling to find an acceptable way of backing up a PostgreSQL 7.4 database. The database is quite large, current

Re: [ADMIN] Orphan files

2006-04-27 Thread Robin Iddon
Can I delete these files ? Or give me an advice, please. When I had a similar problem it turned out that I had exceeded the limits of my FSM and thus the stats table in particular was growing as it was unable to reuse rows. Check your FSM size in postgresql.conf and see what: max_fsm_p

Re: [ADMIN] New system recommendations

2006-04-27 Thread Robin Iddon
d will post the results here if anyone is interested. Best wishes, Robin ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [ADMIN] New system recommendations

2006-04-27 Thread Robin Iddon
anism to keep the logs since the last backup you should be able to restore from that last backup and logs without the data drive. The reverse isn't true - if you lose the WAL but have the data drive, it may not be consistent ... Robin ---(end of

Re: [ADMIN] New system recommendations

2006-04-27 Thread Robin Iddon
HT system (2.6 kernel again, PG 8.0) we found that we had some very odd performance problems that were hard to reproduce in the lab but occurred in the live environment a lot. Turning off HT made them go away. Hope this helps, Robin ---(end of

Re: [ADMIN] Problem with /usr/local/pgsql/bin/psql

2006-04-24 Thread Robin Iddon
(\'192.100.9.51\',\'FirstFloor\')' However, if I were you I would consider running via a file anyway - if you save your query into a file then you can use psql -d temp -f foo.sql instead. Within the file you can type your query exactly like it should be with no special esca

Re: [ADMIN] Autovacuum ideas

2006-04-13 Thread Robin Iddon
to false. Robin ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [ADMIN] PITR Based replication ...

2006-04-05 Thread Robin Iddon
urn 0 if the server is running and 1 if the server is no running. So you could try something like while ssh $REMOTE pg_ctl -D $CLUSTER status do echo "Remote server still running - continuing to wait ..." sleep 10 done Hope this helps, Robin ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [ADMIN] PITR Based replication ...

2006-04-05 Thread Robin Iddon
Andy Shellam wrote: Robin, On my part it's simply the fact that I currently have two servers in different geographical locations - and cost of new hardware is a huge issue. I have, however, recently developed an interest in rsync but I'm unsure as to how PG on the standby server wo

Re: [ADMIN] PITR Based replication ...

2006-04-05 Thread Robin Iddon
e database rather than PITR between the database servers. I see a lot of interest on this list for the WAL copying solution, and I am wondering if that is because people have discounted a DRBD solution or that it has been overlooked? Thanks, Robin ---(end of

Re: [ADMIN] JDBC conncetion fails, please, advise

2006-03-25 Thread Robin Iddon
something like jdbc:postgresql://192.168.2.1/my_database Can you post your pg_hba.conf file? Cheers, Robin Leena Puijola wrote: Hi, Please can you assist. I am trying to connect to PostgreSQL via JDBC. Database version is 8.0.1 and java software version 1.4.2. I have configured the pg_h

Re: [ADMIN] Random disconnects

2006-03-23 Thread Robin Iddon
were running on localhost, probably!). Cheers, Robin ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [ADMIN] reg:conninfo

2006-03-20 Thread Robin Iddon
an IP address ... Robin sandhya wrote: Thanks Robin. What u said is right! But my problem is i am not trying connecting from any remote client. In my ConnectionInfo if i mention the host as, host=localhost.The connection is successful. But the same if i give my localsystem IP where my server is ru

Re: [ADMIN] reg:conninfo

2006-03-20 Thread Robin Iddon
we use the -i on the command line to the postmaster process. Hope this helps, Robin sandhya wrote: hi, I am using postgres8.0.3 on windows.When i am compiling a small sample i am facing problem in connection information. I have given entry in my pg_hba.conf file: hostall

Re: [ADMIN] 8.0.3 pg_autovacuum doesn't clear out stats table?

2006-02-25 Thread Robin Iddon
Then: n_tup_upd+X < 1000 + (2.0 * (reltuples+X)) I see that in 8.1.x this has been resolved by defaulting the scale to 0.4. Rightly or wrongly I have set my scale to 0.3. Thanks for all the help you've offered so far. Robin ---(end of broadcast)-

Re: [ADMIN] 8.0.3 pg_autovacuum doesn't clear out stats table?

2006-02-23 Thread Robin Iddon
size: 1000 relations + 2 pages = 182 kB shared memory. INFO: free space map: 6 relations, 19975 pages stored; 29600 total pages needed DETAIL: Allocated FSM size: 1000 relations + 20000 pages = 182 kB shared memory. I don't actually understand exactly what this is telling me though

Re: [ADMIN] 8.0.3 pg_autovacuum doesn't clear out stats table?

2006-02-23 Thread Robin Iddon
. At least not before the number of tuples has climbed to beyond that count based on my experience to date! Robin ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your

Re: [ADMIN] 8.0.3 pg_autovacuum doesn't clear out stats table?

2006-02-23 Thread Robin Iddon
of scale for a while and see if it makes things any better. Thanks for all the help, Robin ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [ADMIN] 8.0.3 pg_autovacuum doesn't clear out stats table?

2006-02-23 Thread Robin Iddon
t see: DEBUG: 1 All DBs checked in: 478378 usec, will sleep for 300 secs. DEBUG: 2 All DBs checked in: 73336 usec, will sleep for 300 secs. Implying that there isn't anything doing right now (the staff are all gone, so there is no activity on the database as I type, and we know it won

Re: [ADMIN] 8.0.3 pg_autovacuum doesn't clear out stats table?

2006-02-23 Thread Robin Iddon
50% slack - I just don't understand why pg_statistic grows without bound and I am concerned that the size of the stats table might be causing me some performance issues (this is fear rather than fact). Thanks again, Robin ---(end of broadcast)

[ADMIN] 8.0.3 pg_autovacuum doesn't clear out stats table?

2006-02-23 Thread Robin Iddon
uum not consider vacuuming of the stats tables? Thanks in advance for any help you can offer me ... Robin ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[ADMIN] unsubscribe

2003-09-26 Thread Robin Redwood
Title: -- CONFIDENTIALITY NOTICE -- -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the