Re: [GENERAL] Revoke - database does not exist

2014-05-01 Thread Tomáš Vondra
I guess you need to quote the identifier, as you use mixed case. I.e. try "myDB" with the double quotes. Tomas Dne 2. 5. 2014 2:49 Prashanth Kumar napsal(a): Hi,Do not seem to figure out what is wrong here. Why am I getting database does not exist.  I just created the database and am able to co

Re: [GENERAL] could not rename temporary statistics file "/run/shm/pgstat.tmp" to "/run/shm/pgstat.stat": No such file or directory

2014-04-22 Thread Tomáš Vondra
Seems you're using /run/shm and /var/run/shm by mistake. Tomas basti napsal/a: >Hello, > >since I have enabled "stats_temp_directory = '/run/shm'" in >/etc/postgresql/9.1/main/postgresql.conf I get the following error: > >2014-04-21 02:37:29 CEST LOG: could not rename temporary statistics >file

Re: [GENERAL] Server stops responding randomly for 5 minutes

2011-07-13 Thread Tomáš Vondra
> Sometimes per week server stops randomly responding for approx 5 minutes. > User should wait for 5 minutes before server responds. > Other users can work normally at same time. So does the whole machine just stop responding, or just the postgresql? Are those other users using postgresql or some

Re: [GENERAL] Difference in DB size with dump and pg_database_size

2011-07-05 Thread Tomáš Vondra
> On Tue, Jul 5, 2011 at 10:38, Condor wrote: >> Hello, >> any one can explain me why I have difference between db size when I dump >> db, >> I see it's 5G and when I run SELECT >> pg_size_pretty(pg_database_size('somedatabase')) As fulldbsize; on my DB >> postgresql return: 10 GB >> >> I run vacu

Re: [GENERAL] INSERT performance deteriorates quickly during a large import

2007-11-08 Thread Tomáš Vondra
Try to one of these: a) don't use INSERT statements, use a COPY instead b) from time to time run ANALYZE on the "public" table (say 1000 inserts, then one analyze) c) create the table without constraints (primary / foreign keys in this case), import all the data, and then create the const

Re: [GENERAL] day of week

2007-11-01 Thread Tomáš Vondra
Hi, I have records with date column. Is there a way I can get which day of week this date is? http://www.postgresql.org/docs/8.2/interactive/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT t.v. ---(end of broadcast)--- TIP 4: Have you search