Re: [ADMIN] Migrate postgres to newer hardware

2010-03-31 Thread Tino Schwarze
On Tue, Mar 30, 2010 at 10:07:54PM -0400, Dai, Tino wrote: > I'm not a dba. I'm a sysadmin by training. Is there some way to > mirror the disks at the OS level? And then move it to the new > machine. Just a though, I don't know the exact steps. But if you > are interested,

Re: [ADMIN] Migrate postgres to newer hardware

2010-03-30 Thread Tino Schwarze
Hi Renato, dump/restore is the way to go. I suppose, you don't want to compile Postgres for 32 bit on the new machine which might work and might allow you to do the PITR migration. And "downtime is not an option" is always a sign of insufficient planning beforehand. There is no system which doesn

Re: [ADMIN] pg_dump custom format and pigz

2009-10-23 Thread Tino Schwarze
Hi Marc, On Fri, Oct 23, 2009 at 03:52:16PM +0200, Marc Mamin wrote: > > You might add pigz as a post-processing step and disabling compression in > > pg_dump. > > The problem with this solution is that it make it necessary to > decompress the dump entirely before using pg_restore (or did I mis

Re: [ADMIN] pg_dump custom format and pigz

2009-10-23 Thread Tino Schwarze
Hi Marc, On Fri, Oct 23, 2009 at 02:48:58PM +0200, Marc Mamin wrote: > I'm using pg_dump intensively, and until now using the plaintext format > which allows me to pipe the output to pigz (http://zlib.net/pigz/) > This is the fastest way I've found to generate compressed backups. > > (These back

Re: [ADMIN] Background triggers?

2009-08-19 Thread Tino Schwarze
Hi Dick, On Wed, Aug 19, 2009 at 09:23:22PM +0200, Dick Visser wrote: > A bit of a long first story, hope someone is able to help... > > We have got a Ubuntu 8.04 server running Postfix, which reads its > mailing list subscription files, aliases, virtual, domains, etc from a > Postgres database.

Re: [ADMIN] Setting Shared-Buffers

2009-07-10 Thread Tino Schwarze
On Fri, Jul 10, 2009 at 08:49:40AM -0500, Kevin Grittner wrote: > > So, what's a good value to set to effective_cache_size with 10 Gb > > RAM? > > It depends on how many other things you have on the system which are > using RAM, but probably something around 9GB would be appropriate. > Maybe eve

Re: [ADMIN] Setting Shared-Buffers

2009-07-09 Thread Tino Schwarze
Hi Rafael, On Thu, Jul 09, 2009 at 07:18:55PM -0300, Rafael Domiciano wrote: > Today, I've upgraded a dedicated postgres server, from 2 Gb to 10 Gb. > Everything gone well. > > But, I would like shared buffers to use at least 5 Gb of the total memory. > Setting kernel.shmmax with 6291456000 (600

Re: [ADMIN] order by question

2009-06-19 Thread Tino Schwarze
On Fri, Jun 19, 2009 at 05:50:25PM +0800, Tony Liao wrote: > Hi,All >for example,I have a query as this > select id,product_id from table_name where product_id in > (6,3,4,10,7) order by . >the results I want to get as bellow: > idproduct_id.

Re: [ADMIN] Is IDLE session really idle?

2009-06-15 Thread Tino Schwarze
Hi Igor, On Mon, Jun 15, 2009 at 01:15:30PM -0700, Igor Polishchuk wrote: > 2. We can kill the idle sessions periodically. This will free up a big chunk > of memory already allocated to the sessions. The application will gradually > reestablish the connections, and the new sessions will start wi

Re: [ADMIN] Add pre-existing tablespace to new installation

2009-06-09 Thread Tino Schwarze
Hi Roland, On Tue, Jun 09, 2009 at 09:31:43AM -0500, Roland Hughes wrote: > > > While it shouldn't be much data, it is also non-robust. With robust > > > databases, you can create as many databases as you want in as many places > > > as you want. A "fresh install" means that you only have to "te

Re: [ADMIN] Add pre-existing tablespace to new installation

2009-06-09 Thread Tino Schwarze
On Tue, Jun 09, 2009 at 09:10:20AM -0500, Roland Hughes wrote: > On Tuesday 09 June 2009 08:55:18 am Tino Schwarze wrote: > > On Tue, Jun 09, 2009 at 07:57:34AM -0500, Roland Hughes wrote: > > > This has not been the case with 64-bit OpenSuSE. A fresh re-install of >

Re: [ADMIN] Add pre-existing tablespace to new installation

2009-06-09 Thread Tino Schwarze
(which shouldn't be much data). Tino. > On Tuesday 09 June 2009 04:50:07 am Tino Schwarze wrote: > > Hi Roland, > > > > On Mon, Jun 08, 2009 at 12:23:06PM -0500, Roland Hughes wrote: > > > I have had a question for some time and cannot seem to find an answ

Re: [ADMIN] Add pre-existing tablespace to new installation

2009-06-09 Thread Tino Schwarze
Hi Roland, On Mon, Jun 08, 2009 at 12:23:06PM -0500, Roland Hughes wrote: > I have had a question for some time and cannot seem to find an answer. > > Is there a way to add pre-existing tablespace to a fresh Postgres install? > > Typically I create tablespace on some TB drives and place all dat

Re: [ADMIN] migration with additional complications

2009-05-19 Thread Tino Schwarze
Hi pg043g9j2g (or what's your name?), > For various reasons I had to abandon that OS install and > reformat/reinstall WinXP. Time passes... Today I am looking to recover > my work and basically resume where I left off. > > One problem is that I never did an "export" of the old database using

Re: [ADMIN] Vacuum Full

2009-04-02 Thread Tino Schwarze
Hi Tom, On Wed, Apr 01, 2009 at 08:58:54PM -0400, Tom Lane wrote: > >> Maybe we should remove the code and make > >> VACUUM FULL do the table-rewrite thing. > > > What do you mean with "the table-rewrite thing", exactly? > > Like CLUSTER, except not bothering to sort the rows: just seqscan the

Re: [ADMIN] Vacuum Full

2009-04-01 Thread Tino Schwarze
On Wed, Apr 01, 2009 at 08:09:31PM -0400, Tom Lane wrote: > > Nowadays, with many many new users, and no historical context, they do > > just take it for "a better kind of vacuum" when in fact it is really > > like reindex to indexes. I'd vote for rebuild [table]; as the new way > > to spell vacu

Re: [ADMIN] Vacuum Full

2009-04-01 Thread Tino Schwarze
Hi Rafael, On Wed, Apr 01, 2009 at 06:51:00PM -0300, Rafael Domiciano wrote: > > > I have some doubts about Vacuum Full. There We go: > > > 1) The Only thing that Vacuum Full (Only Full, not Analyze) is to clean > > > "dead space" on the disc, and reorganize the relation at the physical > > level

Re: [ADMIN] Data type to store files

2009-03-31 Thread Tino Schwarze
On Tue, Mar 31, 2009 at 08:31:43AM -0300, Agustin Ignacio Genoves wrote: > I guess you should use Bytea Or go for large objects. > > Greetings: > > > > I need to use a PostgreSQL Data Base to store different kinds of files, eg: > > images, videos. So, I'm wondering what data type should I use. >

[ADMIN] Tuning postgres for fast restore?

2009-02-20 Thread Tino Schwarze
Hi there, I'm going to pg_restore a database dump of about 220 GiB (uncompressed, but most data is BLOBs). The machine has 8 GiB of memory and 8 cores. Is there any advice to speed up restoring, postgresql.conf-wise? I already have a script which does the data loading and index creation in parall

Re: [ADMIN] Vacuum wait time problem

2009-02-13 Thread Tino Schwarze
On Fri, Feb 13, 2009 at 03:13:28PM -0700, Scott Marlowe wrote: [...] > Yeah, that's pretty bad. ~2 Million live rows and ~18 Million dead > ones is a pretty badly bloated table. > > Vacuum full is one way to reclaim that lost space. You can also dump > and restore that one table, inside a drop

Re: [ADMIN] Vacuum wait time problem

2009-02-13 Thread Tino Schwarze
Hi Roger, On Fri, Feb 13, 2009 at 01:56:32PM -0800, Roger Ging wrote: > Please don't post HTML mails to mailing lists. Thanks. > I can only answer a couple of the questions at the moment.  I had to > kill the vacuum full and do a regular vacuum, so I can't get the iostat > and vmstat outputs r

Re: [ADMIN] File system level backup with more than one cluster folders

2008-12-10 Thread Tino Schwarze
Hi Mike, > I am newbie with PostgreSQL. I have separate table space for my > databases, which is located in separate folder, which is different to > default. I would like to carry out file system level backup. Do I need > to backup only folder with my table space or all pg folders. Do you kno

Re: [ADMIN] Remote access

2008-12-05 Thread Tino Schwarze
dresses = '*' > in postgresql.conf should do it. I suppose, you forgot to restart > postgresql (reload might not be enough). > > HTH, > > Tino. > > > --- On Fri, 5/12/08, Tino Schwarze wrote: > > From: Tino Schwarze > > Subject: Re: [ADMIN]

Re: [ADMIN] Remote access

2008-12-05 Thread Tino Schwarze
reload might not be enough). HTH, Tino. > --- On Fri, 5/12/08, Tino Schwarze <[EMAIL PROTECTED]> wrote: > From: Tino Schwarze <[EMAIL PROTECTED]> > Subject: Re: [ADMIN] Remote access > To: pgsql-admin@postgresql.org > Date: Friday, 5 December, 2008, 12:53 AM > >

Re: [ADMIN] Remote access

2008-12-05 Thread Tino Schwarze
Hi, > I am getting this error when I try to access the database in another computer > within the same network. > > could not connect to server: Connection timed out (0x274C/10060). Is the > server running on host "XX.XX.XX.XX" and accepting TCP/IP connections on port > 5432? > [...] > My

Re: [ADMIN] AutoVaccuum process start as its off in potgresql.conf]

2008-11-27 Thread Tino Schwarze
On Thu, Nov 27, 2008 at 09:13:04AM +0530, AmitKumar Jain wrote: > I am using PostgreSQL 8.3 version . The autovacuum process is stucking > my system as it automtically start even though its off is > postgresql.conf. > > 2. Is there any benchmark tool for Autovacuum process or can we know how

Re: [ADMIN] NUMA architecture and PostgreSQL

2008-11-27 Thread Tino Schwarze
On Wed, Nov 26, 2008 at 06:13:41PM -0700, Fabricio wrote: > I have an IBM server with NUMA architecture, two nodes with 4 CPU quad > core and 64 GB of RAM each, and PostgrSQL 8.3.5. Is there any way to > avoid the performance degradation when the load goes up and used the > two nodes? I understand

Re: [ADMIN] installing without shell access

2008-11-10 Thread Tino Schwarze
On Mon, Nov 10, 2008 at 10:54:57AM -0700, Scott Marlowe wrote: > > Is it at all possible to get pgsql installed on a system without access to a > > shell? A friend is wanting me to install a particular bulletin board system > > on her website; however, her hosting plan only provides the MySQL dat

Re: [ADMIN] installing without shell access

2008-11-10 Thread Tino Schwarze
On Mon, Nov 10, 2008 at 09:50:09AM -0600, Dana Holland wrote: > Is it at all possible to get pgsql installed on a system without access > to a shell? A friend is wanting me to install a particular bulletin > board system on her website; however, her hosting plan only provides the > MySQL databa

Re: [ADMIN] server space increasing very fast but transaction are very low

2008-11-06 Thread Tino Schwarze
Hi, On Thu, Nov 06, 2008 at 04:15:02PM +0530, brahma tiwari wrote: > My database server db01 is on linux environment and size of base folder > increasing very fast unexpectedly(creating renamed files of 1 GB in base > folder like 1667234568.10) This sounds like your max_fsm_pages setting is to

Re: [ADMIN] SIGKILL and force disconnecting user sessions

2008-09-22 Thread Tino Schwarze
On Mon, Sep 22, 2008 at 09:43:29AM -0400, Brian A. Seklecki wrote: BTW: What version of PG are you using? > We need to kill apache P-conn pools from a an application/web server > cluster for a specific database. We use a load-balancer, so we shut > down the HA L4 Service VIP that the web servers

Re: [ADMIN] DB Dump Size

2008-08-15 Thread Tino Schwarze
On Fri, Aug 15, 2008 at 11:09:02AM +1000, [EMAIL PROTECTED] wrote: > 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. You might use --c

Re: [ADMIN] How to recover deleted data........

2008-07-25 Thread Tino Schwarze
On Fri, Jul 25, 2008 at 04:49:48PM +0530, neo3 matrix wrote: > I have a table property_details having columns (mid,pid,pv,vt) > Accidentally , i fired a query > delete from property_details where mid=27617 and pid=20 or pid=21 or pid=22 > , which resulted in deletion of 418 rows which had pids 21

Re: [ADMIN] Query

2008-07-19 Thread Tino Schwarze
On Sat, Jul 19, 2008 at 04:29:00PM +0530, Kartik wrote: > hello there,i am new to postgresql > i am using postgresql 8.3.3 and i am writing one whole transaction. i want > to know how to set auto commit off > because if any error occours i want the whole transaction to be rolled back. > when i trie

Re: [ADMIN] answer my question, please!!!

2008-07-18 Thread Tino Schwarze
On Fri, Jul 18, 2008 at 04:29:42PM +0700, ria ulfa wrote: > i want to copy table from file with command: > COPY log FROM '/tmp/logfile.txt'; > but there is error: > ERROR: could not open file "/tmp/logfile.txt" for reading: Permission > denied > what can i do for repair this error?? > tha

Re: [ADMIN] Install another version on different directory and port (CentOS, Redhat)

2008-07-09 Thread Tino Schwarze
On Wed, Jul 09, 2008 at 06:23:10PM +0900, Eko Prasetiyo wrote: > Now i have pgsql 8.0 server installed on CentOS Linux (Redhat). > How to install pqsql 8.2 on different directory and port ? > In Windows we can easily do it. Just download the source and use for example ./configure --prefix=/usr/lo

Re: [ADMIN] Removing raw data files

2008-07-07 Thread Tino Schwarze
On Mon, Jul 07, 2008 at 02:19:19PM -0400, Carol Walter wrote: > I asked this question a while ago and I didn't get an answer. > Perhaps I asked the question in a manner that wasn't clear. I > upgraded from 8.1.3 to 8.2.3. I left the 8.1.3 database intact in > case I had to revert to it.

Re: [ADMIN] Who's attached to the database?

2008-07-04 Thread Tino Schwarze
On Fri, Jul 04, 2008 at 06:50:43AM -0700, Lennin Caro wrote: > try this > > select pg_cancel_backend(); > > if the command not work kill the process in os > > kill -9 proccessid_os *NO*! Never kill -9 a postgres backend!!! This is like a headshot, no chance to clean up. You will make your whole

Re: [ADMIN] Best way to limit database sizes

2008-07-03 Thread Tino Schwarze
On Thu, Jul 03, 2008 at 09:10:47PM +0200, Dimitri Fontaine wrote: > >I've considered creating a tablespace in a directory owned by the > >user , so I can use Linux quotas to prevent higher disk usage , but > >this turned out be a bad thought, as all the files are anyway owned > >by the postg

Re: [ADMIN] ask...!!!

2008-07-01 Thread Tino Schwarze
On Tue, Jul 01, 2008 at 03:12:39PM +0700, ria ulfa wrote: > i use linux fedora 7 and database PostgreSQL 8. > i want to copy table in postgre to a file. > i used code : simps=# COPY log TO '/root/documents/log.sql'; > note= simps: name of database > but there is error: could not open file "/

Re: [ADMIN] Configuring Shared Buffers

2008-06-30 Thread Tino Schwarze
On Mon, Jun 30, 2008 at 04:01:14PM -0300, Rafael Domiciano wrote: > The Postgres version is 8.3.3 and I am using Fedora Core 8. > I have in the actual server around 70 connections the same time. I am > assigning for this 100. And what does the server do? Mainly SELECT / UPDATE / INSERT / DELETE, h

Re: [ADMIN] Configuring Shared Buffers

2008-06-30 Thread Tino Schwarze
On Mon, Jun 30, 2008 at 02:52:05PM -0300, Rafael Domiciano wrote: > Folks, I am configuring a new Postgres Server, that's gonna substitute the > critical server of the enterprise. > I have a good machine: > Quad-Core 2.5 Ghz > 4 Gb RAM > 1 Dedicated HD 300 Gb Sata for the PostgreSQL Directory If

Re: [ADMIN] Recommended RAID for Postgres

2008-06-30 Thread Tino Schwarze
On Mon, Jun 30, 2008 at 03:15:34PM +0200, Thomas Bräutigam wrote: > Why avoid RAID5? I though that would be good? Can you explain this? RAID5 has a lot of disadvantages, especially in terms of performance. .oO(There was a link posted recently...) > Writing in the DB, I add about 5-10 GB of data

Re: [ADMIN] Recommended RAID for Postgres

2008-06-30 Thread Tino Schwarze
On Mon, Jun 30, 2008 at 02:30:23PM +0200, Thomas Bräutigam wrote: > I have a pretty huge Postgres DB, about 1,3 to 1,5 Terra. Thats plenty of data. > What do you guys recommend on RAID Levels for this Database. Which > does Postgres recommend, and with which do Postgres run very good or > in th

Re: [ADMIN] Postgres security issue - protecting datafiles

2008-06-04 Thread Tino Schwarze
On Mon, Jun 02, 2008 at 03:16:54PM -0700, [EMAIL PROTECTED] wrote: > I'd like to use postgres to store my secret data in a way that only > me (the DBA, owner of the table) can access the talbe while the root > (system administrator) who installed and maintains the server - will > not be able to s

Re: [ADMIN] Create Index Performance Issue

2008-06-04 Thread Tino Schwarze
On Wed, Jun 04, 2008 at 11:43:24AM +0200, Rudolf van der Leeden wrote: > I'm currently testing a 25G Postgres 8.3.0 database on Apple Xserve/ > Intel with Mac OSX 10.5 (Leopard). > > There are two identical machines with identical configurations (hw > and sw). > Running a pg_restore of a binar

Re: [ADMIN] Deadlocks ?

2008-05-13 Thread Tino Schwarze
On Tue, May 13, 2008 at 01:18:24PM -0600, kevin kempter wrote: > we seem to be getting deadlock quite a lot. We have a python process > that does the following and we keep getting deadlocks. Is this a real > deadlock or maybe a wait condition? Any help in debugging / resolving > this would b

Re: [ADMIN] Orphan TOAST object

2008-05-12 Thread Tino Schwarze
Hi James, On Mon, May 12, 2008 at 09:25:34AM +0200, James Farrugia wrote: > First of all thanks for the immediate replies! > Was actually waiting for the right moment to upgrade to 8.3 but migrating a > live 1Tb database is a bit daunting especially if you have never done it > before (as in my ca

Re: [ADMIN] Require security ACCESS matrix in prostgresql !!

2008-05-11 Thread Tino Schwarze
On Sun, May 11, 2008 at 09:29:01AM -0500, Potluri Srikanth wrote: > can anyone provide me the security ACCESS matrix in prostgresql ? Have a look at the fine manual: http://www.postgresql.org/docs/8.3/static/privileges.html HTH, Tino. -- "What we resist, persists." (Zen saying) www.craniosa

Re: [ADMIN] Examining very large dumps

2008-04-16 Thread Tino Schwarze
On Wed, Apr 16, 2008 at 12:58:29PM +0300, Achilleas Mantzios wrote: > > > Hi, i just started the process of migrating from 7.4 to 8.3.1. > > > On restoring, apart from the easily explainable ERRORs (both in > > > DDL, COPY), i got some ugly ERRORs denoting foreign key constraint > > > violations.

Re: [ADMIN] Examining very large dumps

2008-04-16 Thread Tino Schwarze
On Wed, Apr 16, 2008 at 12:35:26PM +0300, Achilleas Mantzios wrote: > Hi, i just started the process of migrating from 7.4 to 8.3.1. > On restoring, apart from the easily explainable ERRORs (both in DDL, COPY), i > got some ugly ERRORs > denoting foreign key constraint violations. > Since the dump

Re: [ADMIN] pg_dump/pg_restore

2008-04-08 Thread Tino Schwarze
On Tue, Apr 08, 2008 at 04:52:23PM -0300, Sergio Gabriel Rodriguez wrote: > I'm using postgresql 7.4, I have a problem with pg_dump/pg_restore. I > want to back and restore only one schema from my db (I did it), but > when I restore it, postgresql found errors in some views, this ones > needs of o

Re: [ADMIN] Handling large volumes of data

2008-04-08 Thread Tino Schwarze
On Tue, Apr 08, 2008 at 12:13:36PM +0200, Johann Spies wrote: > > > This took about a week on a 2xCPU quadcore server with 8Gb RAM. > > > > This is not the most interesting thing here. What disk I/O subsystem do > > you use? At least a hardware RAID controller with RAID 0 or 10 should > > be us

Re: [ADMIN] Handling large volumes of data

2008-04-08 Thread Tino Schwarze
On Tue, Apr 08, 2008 at 11:42:34AM +0200, Johann Spies wrote: > 12501 ?S 0:00 /usr/lib/postgresql/8.1/bin/postmaster -D > /var/lib/postgresql/8.1/main -c > config_file=/etc/postgresql/8.1/main/postgresql.conf > 12504 ?D 0:54 \_ postgres: writer process > 12505 ?

Re: [ADMIN] connection problems

2008-04-01 Thread Tino Schwarze
On Tue, Apr 01, 2008 at 05:52:01PM +0200, Shavonne Marietta Wijesinghe wrote: > Thanks Tino. But what do you mean by "netstat -tln" i use the pgadmin. So you're on Windows? You didn't mention any operating system... What does Postgres say on startup? Tino. -- „Es gibt keinen Weg zum Frieden. De

Re: [ADMIN] connection problems

2008-04-01 Thread Tino Schwarze
On Tue, Apr 01, 2008 at 04:44:29PM +0200, Shavonne Marietta Wijesinghe wrote: > I have my postgresql(ver. 8 ) db on one computer (as localhost) and i'm > trying to access it from another computer but i get the error > "could not connect to Server: Connection refused" > > I followed the guide and

Re: [ADMIN] what is the maximum number of rows in a table in postgresql 8.1

2008-03-25 Thread Tino Schwarze
d there are possibly larger databases around. Bye, Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de www.forteego.de Tino Schwarze * Lortzingstraße 21 * 09119 Chemnitz -- 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] Processes running without cleaning

2008-02-18 Thread Tino Schwarze
ecifying -N and -B on command line, I would set the appropiate options in postgresql.conf - max_connections and shared_buffers. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de www.forteego.de Tino Schwarze * Lortzingstraße 21 * 09119 Chemnitz ---(e

Re: [ADMIN] 8.3.0, locales, and encodings

2008-02-07 Thread Tino Schwarze
that database, and then use a client (PSQL) encoding of > "LATIN1", and let PostgreSQL convert the data? Pros & cons? I'd store anything UTF8. The performance penalty should be very tiny. > I presume this ("admin") is the proper PostgreSQL list to post thi

Re: [ADMIN] Where to find information on the new HOT tables?

2008-02-06 Thread Tino Schwarze
n. > To ease PostgreSQL newbies manual grasping, I certainly don't think it will > need shortening the documentation. Maybe there could be quickstart chapters or HOWTOs. Bye, Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de Tino Schwarze * Lortzingstraß

Re: [ADMIN] Postmasters in sleeping mode

2008-02-06 Thread Tino Schwarze
hen the connection was opened by looking at the process' creation time. HTH, Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de Tino Schwarze * Lortzingstraße 21 * 09119 Chemnitz ---(end of broadcast)--- TIP 1: if posting/read

Re: [ADMIN] performance on selecting a row in large tables

2008-02-04 Thread Tino Schwarze
first query takes some time and all subsequent are fast. That's what caches are for. HTH, Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de Tino Schwarze * Lortzingstraße 21 * 09119 Chemnitz ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [ADMIN] performance on selecting a row in large tables

2008-02-04 Thread Tino Schwarze
_id from table limit 1 offset 10; will run the query and show you how the query plan looks and how much time is spent. It is likely to say "SeqScan" somewhere - a sequential scan of the tabe. HTH! Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de Tino Schw

Re: [ADMIN] SSL question

2008-02-03 Thread Tino Schwarze
ook at the network traffic with and without SSL. That way you'll see what is going on and whether it's encrypted. HTH, Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de Tino Schwarze * Lortzingstraße 21 * 09119 Chemnitz ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [ADMIN] Recovering a database in danger of transaction wrap-around

2008-01-25 Thread Tino Schwarze
here - we're in an emergency situation anyway and after that, the whole DB will be clean again, all indices rebuilt nicely, no bloat in the tables. Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de Tino Schwarze * Lortzingstraße 21 * 09119 Chemnitz

Re: [ADMIN] Fwd: physical memory

2008-01-12 Thread Tino Schwarze
rating system. Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de Tino Schwarze * Parkstraße 17h * 09120 Chemnitz ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [ADMIN] Performance tuning...

2008-01-02 Thread Tino Schwarze
over 12 days now? How large is the database? Did you adjust any settings in postgresql.conf (probably based on the 8.1 ones)? Do you see anything in PostgreSQL's log file? What kind of machine are you using (there are a lot of different Sun boxes...) Bye, Tino. -- www.craniosacralzentrum.d

Re: [ADMIN] pg_hba.conf is driving me nuts

2007-12-15 Thread Tino Schwarze
match. HTH, Tino. -- www.craniosacralzentrum.de www.lebensraum11.de www.spiritualdesign-chemnitz.de Tino Schwarze * Parkstraße 17h * 09120 Chemnitz ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [ADMIN] pg_hba.conf is driving me nuts

2007-12-15 Thread Tino Schwarze
is dangerous, replace "trust" by a method of your choice! But it's good for testing. Bye, Tino. -- www.craniosacralzentrum.de www.lebensraum11.de www.spiritualdesign-chemnitz.de Tino Schwarze * Parkstraße 17h * 09120 Chemnitz ---(end of broadcast

Re: [ADMIN] Encrypting a single column

2007-12-14 Thread Tino Schwarze
ectivity > layer should be doing the work. I think, he should go for encrypted backup instead if that's what he wants to accomplish. > If you're trying to protect against something else, please clarify. +1 Bye, Tino. -- www.craniosacralzentrum.de www.lebensrau

Re: [ADMIN] Postgres SQL with Suse Linux

2007-10-23 Thread Tino Schwarze
p://www.minq.se/products/dbvis/) - the free edition suffices for simple stuff. You could also try installing knoda, mergeant, rekall and look at these (I don't know them, just looked into YaST for available database stuff). I prefer using psql directly... Bye, Tino. -- www.cranios

Re: [ADMIN] Postgres SQL with Suse Linux

2007-10-22 Thread Tino Schwarze
he latest 8.2.x version, follow the instructions here: http://www.postgresql.org/docs/8.2/interactive/installation.html (You need to install the packages readline-devel and zlib-devel as well as the gcc compiler). HTH, Tino. -- www.craniosacralzentrum.de www.spiritualdesign-chemnitz.de Tino

Re: [ADMIN] Moving database install to new SAN

2007-09-13 Thread Tino Schwarze
QL on? Tino. -- www.spiritualdesign-chemnitz.de www.lebensraum11.de Tino Schwarze * Parkstraße 17h * 09120 Chemnitz ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [ADMIN] automatically detecting long timed locks

2007-09-13 Thread Tino Schwarze
e to watch for transactions waiting for the lock in step 3 - I do not care for the time it took to perform the work. Maybe I'll have to code up some perl which remembers the transaction age if the lock is acquired, then calculates lock holding time? Hm, or I'll just watch for not yet g

[ADMIN] automatically detecting long timed locks

2007-09-12 Thread Tino Schwarze
yz" in exclusive mode", but this is AFTER the lock got acquired. We'd like to notice if lock acquisition takes very long so we can look around and figure out what's wrong. How can we achieve this? Thanks, Tino. PS: Version is 8.2.4. -- www.spiritualdesign-chemnitz.de www.

Re: [ADMIN] out of memory

2007-09-12 Thread Tino Schwarze
rror ("out of memory"). > > What can a pc user do? Anything? Tell the user that he/she should use an appropiate WHERE clause. You might also consider adding more swap to the machine. Then it will go horribly slow, but it will work. HTH, Tino. -- www.spiritualdesign-chemnitz.d

Re: [ADMIN] Idle transactions

2007-09-11 Thread Tino Schwarze
lect c.relname,l.transaction,l.pid,l.granted,l.mode from pg_class c,pg_locks l where l.relation = c.oid order by l.pid, l.mode; HTH, Tino. -- www.spiritualdesign-chemnitz.de www.lebensraum11.de Tino Schwarze * Parkstraße 17h * 09120 Chemnitz ---(end of broadcast)-

Re: [ADMIN] Idle transactions

2007-09-11 Thread Tino Schwarze
h uses a transaction should always look like this: boolean success = false; // default: roll back, e.g. on Exception connection.openTransaction(); try { // perform work success = true; } finally { connection.closeTransaction (success); } HTH, Tino. -- www.spiritualdesign-chemnitz.d

Re: [ADMIN] Raw disk space used

2007-08-01 Thread Tino Schwarze
t up AFAIK. You may try the following shell script to determine the size of all databases: #!/bin/bash # # Shell script to determine disk usage of PostgreSQL databases. # by Tino Schwarze/Community4you PGDATADIR=/data/pgsql/74 PGPORT=5432 PSQLBIN=/opt/pgsql-7.4.3/bin/psql PGOPTS="-U postgres&q