"Indika Maligaspe" <indika@xxxxxxxxxxxxxx> writes: > The problem is when we are querying a specific set of table (which all > tables having over 100K of rows), the Postgres user process takes over or > close 700MB of memory. This is just to return 3000 odd rows. Even though we > have lot of data we still do not have that much to eat up this much of > memory. Playing with server-side settings won't have the slightest effect on a client-side problem. I'd suggest asking about this on the pgsql-jdbc list; they are more likely to have useful suggestions than backend hackers will. regards, tom lane