Re: [GENERAL] PSA: If you are running Precise/12.04 upgrade your kernel.

2013-06-06 Thread Nikhil G Daddikar

Folks,

This is bad news as I run Ubuntu 12.04 LTS. However, my ubuntu 12.04 LTS 
boxes have been updated to "3.5.0-32-generic" (official update). Any 
idea whether the Postgresql has problems with this kernel? I'd like to 
follow the "official" LTS updates because I am not sure what other 
surprises I could face if I move to an unofficial one.


Thanks!
Nikhil



On 07-06-2013 04:18, Scott Marlowe wrote:

On Thu, Jun 6, 2013 at 4:35 PM, Joshua D. Drake  wrote:

Hello,

I had the distinct displeasure of staying up entirely too late with a
customer this week because they upgraded to 12.04 and immediately
experienced a huge performance regression. In the process they also upgraded
to PostgreSQL 9.1 from 8.4. There were a lot of knobs to change/fix/modify
because of this. However, nothing I did fixed the problem. Until... I
upgraded the kernel.

Upgrading from 3.2Precise to the 3.9.4 kernel produced the following
results:

I've since heard that 3.4 also fixes this issue as well.

What are you using for your IO on these boxes?






--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[GENERAL] How to check if Postgresql files are OK

2013-05-27 Thread Nikhil G Daddikar

Folks,

I was using PostgreSQL 8.x in development environment when one day I 
started getting all kinds of low-level errors while running queries and 
eventually had to reinstall. Maybe it was salvageable but since it was a 
test database anyway it didn't matter.


We use PostgreSQL 9 on our production server and I was wondering if 
there there is a way to know when pages get corrupted. I see that there 
is some kind of checksum maintained from 9.3 but till then is there a 
way to be notified quickly when such a thing happens? I use a 
basebackup+rsync of WAL files as a disaster recovery solution. Will this 
be useful when such a scenario occurs?


Thanks.




--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[GENERAL] How to know the exact time to which the database was recovered

2013-05-27 Thread Nikhil G Daddikar

Hello,

We use the basebackup + WAL files strategy to backup our database i.e. 
take a basebackup every day and copy WAL files to a remote server every 
15 minutes. In case of a disaster on the master, we'd recover the 
database on the slave. If this happens, I would like to tell the 
customer the exact time till when the database was recovered. How do I 
get this timestamp?


Thanks.
Nikhil


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[GENERAL] Error while vacuuming table

2011-12-07 Thread Nikhil G. Daddikar

Hello,

When I run vacuum, I get:

vacuumdb: vacuuming of database "pm50" failed: ERROR:  catalog is 
missing 1 attribute(s) for relid 4210163


How do I go about debugging this? I have googled around and tried a few 
things to no avail.


Any pointers will be appreciated.

Thanks.
Nikhil

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] PostgreSQL Performance issue

2010-04-27 Thread Nikhil G. Daddikar


Most likely you are inserting one per transaction. Set autocommit to 
false and commit only after all the inserts are done.


-n.


On 27-04-2010 13:41, a.bhattacha...@sungard.com wrote:


Dear All Experts,

I am using in PostgreSQL 8.3.5 database on windows 64 bit OS.

However, I have a batch program written in Java which processes the 
data and populates them into tables in Postgres database.


I have *622,000 number of records *but it is taking almost *4 and half 
hours* to load these data into the tables.


I have a simple function in db which is being called from Java batch 
program to populate the records into tables from flat files.


I have the below system configuration for my database server.

Database Server



*PostgreSQL v8.3.5*

Operating System



*Windows 2003 Server 64 bit, Service Pack 2*

CPU



*2 * Quad Core AMD Opteron Processor 2376 @ 2.29 GHz*

Memory



*16 GB RAM*

Disk Space



*total 2.5 TB [C drive -- 454 GB & D drive 1.99 TB]*

 and I have set my postgresql.conf parameters as below.

==

#--

# RESOURCE USAGE (except WAL)

#--

# - Memory -

shared_buffers = 1GB

temp_buffers = 256MB

max_prepared_transactions = 100

work_mem = 512MB

maintenance_work_mem = 512MB

# - Free Space Map -

max_fsm_pages = 160

max_fsm_relations = 1   
'


#--

# WRITE AHEAD LOG

#--

wal_buffers = 5MB# min 32kB

checkpoint_segments = 32

checkpoint_completion_target = 0.9

#--

# QUERY TUNING

#--

# - Planner Method Configuration -

enable_hashagg = on

enable_hashjoin = on

enable_indexscan = on

enable_mergejoin = on

enable_nestloop = on

enable_seqscan = on

enable_sort = on

effective_cache_size = 8GB



Please advise me the best or optimum way setting these parameters to 
achieve better performance.


Also note that, when I am setting my *shared_buffer = 2GB or high , 
*Postgres is throwing an error "/shared_buffer size cannot be more 
than size_t/"


It would be very grateful, if anyone can help me on this.

Many thanks





[GENERAL] Postgresql on EC2/EBS in production?

2010-04-25 Thread Nikhil G. Daddikar

Folks,

I was wondering if any of you are using (or tried to use) PG+EC2/EBS on 
a production system. Are any best-practices. Googling didn't help much. 
A few articles I came across scared me a bit.


Thanks.



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] "1-Click" installer problems

2010-04-06 Thread Nikhil G. Daddikar



On 07-04-2010 10:04, Craig Ringer wrote:

Nikhil G. Daddikar wrote:
   


I have tried earlier versions of 8.4 installer on Vista x32 and they'd
failed too. But let me try the latest installer again. I will let you know.
 

Any luck with the call?  Or are we still at "it doesn't work on your
systems or some others but does on many, and we don't know why yet"?
   


Yes, that's the current state. They found that the problem was with the 
initcluster.vbs file and gave me a new file to run manually. I did and 
it worked. They then gave me an updated installer with this new file. 
However, it failed again in the same file. I ran that same file manually 
again and it worked. Apparently there is a problem creating a 
'FileSystemObject' from the installer.


We are going to have a webex session in a couple of hours where their 
engineers will try out various things. I will post the results once I 
have something concrete.



Thanks for your interest.

-ngd.

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] "1-Click" installer problems

2010-04-05 Thread Nikhil G. Daddikar



I have tried earlier versions of 8.4 installer on Vista x32 and they'd 
failed too. But let me try the latest installer again. I will let you know.


-n.

On 06-04-2010 10:09, Craig Ringer wrote:

Nikhil G. Daddikar wrote:
   

  Hi Craig,

I have a call with EDB folks in an hour. I will post when I have
something concrete. Meanwhile, if you need anything specific about the
system, please let me know.

I have Vista Business x64
 

Hmm. Your setup is the same as mine except that all the hosts I've
tested on are 32-bit installs. Interesting.

Unfortunately our friends at Microsoft don't let you simply re-install a
64-bit version, you have to go and buy the OS all over again at absurd
retail prices. I don't have an MSDN subscription at work. So I can't
personally test with x64 versions.

That's certainly something to start looking at, though. I'm sure that if
it was as simple as "the installer is broken on x64" it would've turned
up by now, but perhaps there's something else that only causes a problem
when installs are run on x64 hosts. Something to do with pathname
rewriting - Program Files (x86) for example?

--
Craig Ringer
   



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] "1-Click" installer problems

2010-04-05 Thread Nikhil G. Daddikar

Hi Craig,

I have a call with EDB folks in an hour. I will post when I have 
something concrete. Meanwhile, if you need anything specific about the 
system, please let me know.


I have Vista Business x64 with Microsoft Security Essentials and UAC 
turned ON. I have tried (at least) the following:


  1. Default install of PG 8.4
  2. Install of PG 8.4 in C:\Postgresql
  3. Disable MS Security Essentials for C:\Postgresql and reinstall
  4. Create a regular (non-admin) posgres user before installation
  5. Delete that user and redo installation
  6. Disable UAC and install in C:\Postgresql as well as in the default
 directory
  7. Enabled the "Administrator" user in Vista, logged in as that user
 and installed

If you want me to try anything else, I can do that too.

Thanks,
Nikhil

On 06-04-2010 09:31, Craig Ringer wrote:

Nikhil,

Any movement on collecting some system comparision information so we can
start to figure out why the installer works on my systems, but not on yours?

I've just tested on a couple of other Vista systems (at work) without
problems, so there must be something different about your systems and
those of the others you've seen complain on the EDB forums. It'd be good
to find out what it is.

--
Craig Ringer

   




Re: [GENERAL] "1-Click" installer problems

2010-04-01 Thread Nikhil G. Daddikar

Peter,


Are you sure about that? Have you actually tested that? Even if you
find that the old 8.3 pginstaller works where the EDB installer
failed, that doesn't actually demonstrate that pginstaller is
inherently superior to the EDB installer. It is likely due to a fluke.
Perhaps it is down to something vestigial from pginstaller remaining.


All I am saying is that the folks check out what the diff between EDB 
and the "old" installer is without jumping to conclusions about APPDATA 
or whatever because the old installer worked. Maybe it is a fluke but 
isn't it worth investigating in order to fix the installer?



Your incredible sense of entitlement is very irritating. Your unctuous
statement that "Evangelizing PGSQL was a mistake", as if you expect a
contrite letter, is just too much to bear.
   You're the one with the big ego. I think that people's responses so
far have been very subdued, considering how obnoxious you've been. In
your first e-mail, you called the EDB one click installer "a scam".


Sometimes we say things that we don't actually mean and this was one of 
them. I understand I have hurt some folks and I ask forgiveness from all 
of them.


I look forward to working with EDB and help them in fixing the issues.

-n.

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] "1-Click" installer problems

2010-04-01 Thread Nikhil G. Daddikar

Folks,

I received a call from EnterpriseDB trying to understand what the 
problem is. We are scheduled to meet on Monday. I will post the findings 
as soon as I have something concrete.


Thank you all.
-n.


Unless you are prepared to help us understand exactly what is unique
about your systems so we can figure out what is going wrong, then we
cannot help you.
   



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] "1-Click" installer problems

2010-04-01 Thread Nikhil G. Daddikar



Maybe I'm missing something, but I see 5 responses from 2 of our
engineers over the last 2 days on that thread, all asking valid
questions and trying to figure out why this is failing for you, when
it does not for the vast majority of other users. I appreciate that
you do not want to do a manual installation, but for us to understand
why it is failing in your particular case, we need to do some
exploration.
   


It is not the count that matters. It is the quality. Even after giving 
logs, your folks are unable to figure out the problem. I am facing the 
same problem that was faced by a lot of users on the forum and not one 
was resolved successfully. Otherwise I would've moved ahead on my own. I 
am interested in fixing the installer. I am not interested in manual 
steps to get it working on my PC because there are a hundred other PCs 
that I have to worry about and a fix in the installer would be right 
step ahead. But someone has to admit that there is a problem in the 
installer. All arguments in this thread are junk because 8.3 installer 
for win32 from postgresql.org WORKS using the same conditions on 
Vista/2003/7 everywhere. It is nothing to do with APPDATA or any such 
thing. Something that worked was broken, it's that simple. And nobody 
wants to know what was.



Sachin told you how to install in a nutshell, but I guess you missed
that so here are the detail walkthrough instructions:
http://www.enterprisedb.com/learning/pginst_guide.do

   
I don't think that's bad for *free* support.
   


If you mean the number of responses, yes it's great.

The reason I posted this in the general newsgroup is because I thought 
others would like to know what's going on. But I think this is a 
newsgroup with a bunch of inflated egos who want to do everything else 
rather than address the problem. A typical open-source group. 
Evangelizing PGSQL was a mistake.


Thanks for all your help and good luck to everyone!
-n.

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] "1-Click" installer problems

2010-04-01 Thread Nikhil G. Daddikar




On 01-04-2010 12:39, Thomas Kellerer wrote:

Nikhil G. Daddikar, 01.04.2010 08:04:


In about 30 seconds I found the following unanswered threads relating to
installation on Windows Vista. If anybody is interested I can find more.


The problem with this kind of statistics is that you will only find 
people who complain, you'll never find people who do not complain 
because they have no problems. Actually that's true for all internet 
forums or mailing lists: you'll seldomly find people posting something 
like  "Hey everything works fine, I had no problems".


I agree... but they are still unanswered. And what else can I do. I am 
facing problems on multiple computers, my customers are facing problems 
as well. NOBODY till date has managed to install 8.4 on Vista using the 
1-click installer and EVERYBODY has managed to install the 8.3 installer 
(from postgresql.org) on Vista. DOES THIS COUNT AS A VALID STATISTIC?  
And yes, i have tried installing it in C:\Postgresql as well. 
Interesting to note that 8.3 installer from postgresql.org installs 
perfectly in 'C:\Program Files' even on Vista. No use blaming Windows 
all the time. It is the installer that is buggy.





All the posts seem to share the same root cause: the data directory 
has been put into "c:\Program Files" but a regular user does not have 
write permissions on that directory. As the installer is usually run 
with Administrator rights, the directory can be created but the 
service (or initdb) runs under a normal user account that cannot write 
to that directory because.


I do not like the installer's suggestion to put the data directory 
into c:\Program Files either, I think this should default to %APPDATA% 
instead of %ProgramFile%. I bet half of the problems would go away if 
the installer refused to put the data directory into c:\Program Files.


Given the fact that Microsoft finally tries to enforce people not to 
work as Administrators makes this even more important.


My suggestion is to try to use a different data directory when 
installing Postgres and make sure that the postgres service account is 
allowed to read and write that directory.


Personally I switched to using the ZIP packages completely because it 
is so much easer (unzip, initdb, pg_ctl -register, done)


Thomas







--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] "1-Click" installer problems

2010-03-31 Thread Nikhil G. Daddikar


In about 30 seconds I found the following unanswered threads relating to 
installation on Windows Vista. If anybody is interested I can find more. 
And I can tell you that a lot of our customers are facing the same 
problem with this 1-click gimmicky installer.. something that they never 
faced till the 8.3 installer from postgresql.org. And not everybody is 
going to post a forum ticket. We've convinced them install 8.3 instead 
and that works. But their first experience has been bitter and it 
lingers for a long time.


http://forums.enterprisedb.com/posts/list/1815.page

http://forums.enterprisedb.com/posts/list/1132.page

http://forums.enterprisedb.com/posts/list/2175.page

http://forums.enterprisedb.com/posts/list/2033.page

http://forums.enterprisedb.com/posts/list/1186.page

http://forums.enterprisedb.com/posts/list/1605.page

http://forums.enterprisedb.com/posts/list/1578.page



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] "1-Click" installer problems

2010-03-31 Thread Nikhil G. Daddikar

Folks,

Here is my original ticket. It has the screen shot  as well as the logs. 
Like many other threads on this forum it remains unresolved.


http://forums.enterprisedb.com/posts/list/2235.page

If you want to know the number of people who complain about this 
one-click installer, just search that forum. The reason I posted in this 
general news group is to make other people aware of the problems that 
are being encountered.


And I am not the kind of person who will complain without reasons. I 
have spent at least 3 man days trying to install the one-click installer 
on multiple Vista machines and every time without success... trying to 
find out the problem so that I could post the solution to the forum. I 
have been using PG since the last 10 years and we think we do a pretty 
good job of it. We have successfully converted people from SQL Server 
and Oracle to PG and I think that in itself qualifies as some kind of 
"giving back" to PG.


I don't like Windows and I don't like Linux and I don't like Mac. But 
they are reality and in my opinion we need to live with it. If PG will 
not support Windows Vista or 7, then it should simply say so and I will 
keep my mouth shut like I did before 8.0. But to move from something 
that works i.e PG 8.3 win32 binary to something that doesn't i.e the 
1Click installer and then claiming that Windows sucks doesn't go down 
well with me. I appreciate the volunteers that have made the database 
and the installer till now.


What I would like from EDB is a list of instructions on how to install 
it on Vista or Windows 7. I've asked this in the forum but I have not 
received any response. Is this too much to ask?


-Nikhil

PS: It is the users that make or break the software not its developers. 
So please think twice before asking users to go to hell. Other users 
might think it will be their turn to hear this some day.



On 01-04-2010 09:41, Craig Ringer wrote:

Joshua D. Drake wrote:
   


If EDB was failing for a long time, we would hear a lot more about it.
They host the most downloaded installer .Org has.
 

True. And sorry for grumping.

I've had the misfortune to maintain a win32 installer (in my own time)
before, so this is a bit of a hot button. Sure, it works on every system
I have access to without issues, but because your FarkWare 4000 Super
Privacy Nuker ZX software breaks everything that tries to set file
system permissions, the installer's clearly defective. Argh.

I still shouldn't let it get to me. My apologies to Nikhil.

In any case, while I the EDB installer works extremely well for the
clear majority, like anything it could use improvement, and detailed
constructive feedback on what exactly needs improvement can only be a
good thing. It's the *detailed* bit that needs work right now, though...

( For example, people _do_ get confused by its handling of the postgres
service account, especially during reinstall, and it'd be interesting to
see if there were other approaches taken by other software that avoided
needing to involve the user in working with the postgres service account
password directly. )

--
Craig Ringer

   



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[GENERAL] "1-Click" installer problems

2010-03-31 Thread Nikhil G. Daddikar

Hi,

I have been trying to install 8.4 on my Vista without success. Earlier 
I'd tried to install 8.3 and that failed too. I tried installing these 
on other Vista machines and they failed too. I searched for google and 
enterprisedb forums and there are innumerable requests like mine. Same 
with Windows 7. It seems enterprisedb has no clue on what the problem is 
and how to fix it. There is not even a guide on how to install 
postgresql on Vista or Windows 7. Their 'guide' is only for MacOS. The 
"one click" feels like a scam. Search for other threads on their forums 
or on google. Their support staff want to be helpful but I think they 
just lack the necessary expertise in solving such issues.


I was able to install 8.3 from postgresql.org download site and now I 
see 8.4 is no longer supported. What are we windows users supposed to 
do? Our production servers are linux based but our development 
environment is Windows.


I have nothing against enterprisedb but the decision to 'leave out' 
windows from postgresql.org download site seems political and will 
simply alienate more people from postgresql. We advocate pgsql to all 
our customers and help them in installation and training at no cost 
because we believe that is some way of giving back. With the new 
"1-click" we are not sure any more.  I strongly recommend that you start 
supporting the win32 binary on postgresql.org site again because that 
used to work till 8.3 and enterprisedb is failing for a long time.


Regards,
Nikhil



--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] Reliability Stability of PgSQL & it's JDBC driver

2000-12-13 Thread Nikhil G. Daddikar

Nathan,

Thanks for your response. It is great to know that Postgres is working out
fine. However,  I don't understand what "Vaccum of the DB" means nor what
the "WAL" functionality is. If you could briefly explain these, that would
be great.

Thanks again!
-ngd.

> The main problem that you have in a production system is the VACUUM of the
database.
> This will in most cases severely inhibit performance.  If your system
isn't
> 24x7, then you should be fine as you can schedule this for off times.  I
> believe that the need to vacuum the database will be removed in the next
> version due to WAL functionality, but I'm sure someone else is better
> qualified to explain that.  I just wanted to vouch for the stability of
> Postgres in a production environment.