[ADMIN] MS Access and PostgreSQL

2006-04-07 Thread C K
Dear Friends, I am here for a problem regarding MS Access and PostgreSQL connection through ODBC. I have liked my PostgreSQL database tables to MS Access. When I am going for inserting/updating any data is just displays #deleted. I also use MySQL (client's choice). Same problem occurs for MySQL als

Re: [ADMIN] MS Access and PostgreSQL

2006-04-15 Thread C K
Thanks you. I found it very useful and solved my problem. Thanks. CPK ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

[ADMIN] Storing images and other data in PostgreSQL from Ms Access

2008-06-14 Thread C K
Hi All, I am testing the postgresql as a back-end for a project having ms access as a front-end. I have linked postgresql tables and started using. It works well for all data except the binary data. When used to insert/retrieve data from such fields, ms access gives error that it can't recognize th

Re: [ADMIN] Storing images and other data in PostgreSQL from Ms Access

2008-06-15 Thread C K
CODE one. I don't know why, but ISTM that MSAccess > perform a better type mapping with the ANSI driver...at least, TEXT -> > Memo, so I probably linked bytea -> OLE using the ANSI driver when I > tried ? > > - -- > Guillaume (ioguix) de Rorthais > > C K a écri

[ADMIN] Functions

2008-06-24 Thread C K
Dear Members, I am switching our ERP and other under development applications from MySQL to PostgreSQL. While working on this, I got some problems while creating store procedures. As PG does not support procedures, rather it uses Functions. While creating a function from MySQL as CREATE [EMAIL PRO

[ADMIN] functions

2008-08-02 Thread C K
Dear Friends, I have written a function as follows. Here I need to get the sum of balance before the user provided date. The below function works well, but returns records as a set of values, rather I need individual columns. What to do? CREATE OR REPLACE FUNCTION aa(date) RETURNS SETOF record AS

[ADMIN] functions

2008-08-02 Thread C K
Dear Friends, I have written a function as follows. Here I need to get the sum of balance before the user provided date. The below function works well, but returns records as a set of values, rather I need individual columns. What to do? CREATE OR REPLACE FUNCTION aa(date) RETURNS SETOF record AS

[ADMIN] Managing connections

2008-08-06 Thread C K
Dear Friends, I want to know if I open a table to view the data a new connection is opened. If I open another table/execute a query does a another new connection is opened? As per manual, I know that for a database cluster and the same port a postgresql instance runs. But if we run multiple SQL sta

Re: [ADMIN] Managing connections

2008-08-07 Thread C K
y one instance, but when another application with same username even from same machine is started, another PG instance is started. Now we are testing for other applications and impact on memory. Regards, CPK On Thu, Aug 7, 2008 at 3:09 PM, H. Hall <[EMAIL PROTECTED]> wrote: > C K wrote: >

[ADMIN] setting datestyle

2008-08-09 Thread C K
Dear Friends, I have tried to set datestyle to 'DMY'. As per manual and many other posts related to this point, I have set datestyle to 'DMY' at database. but still it is needed to execute each time *set datestyle to 'DMY' *before starting any new connection. Once this is set, there is no problem f

[ADMIN] Fwd: setting datestyle

2008-08-11 Thread C K
Dear Friends, I have tried to set datestyle to 'DMY'. As per manual and many other posts related to this point, I have set datestyle to 'DMY' at database. but still it is needed to execute each time *set datestyle to 'DMY' *before starting any new connection. Once this is set, there is no problem f

[ADMIN] cache lookup failed

2008-08-19 Thread c k
I got following error while testing some newly created functions. ERROR: cache lookup failed for function 111462 CONTEXT: PL/pgSQL function "uf_postdoc" line 25 at FOR over SELECT rows ** Error ** ERROR: cache lookup failed for function 111462 SQL state: XX000 Context: PL/pgSQ

[ADMIN] Query performance difference

2008-08-21 Thread c k
Hello, I have a question regarding query performance from two pgsql applications. PGadmin III 1.8 and Navicat for postgresql 8. Both connected to same server on local machine 8.3 and runs a same query for appox. 1,60,000 rows with one min, one max and addition of the min and max values on two table

[ADMIN] LIKE and SIMILAR TO

2008-08-22 Thread c k
Hello all, As we are migrating our ERP application from MySQL to PostgreSQL we have some difficulties. One of them is use of Like and Similar to operators. We often use LIKE to search a string from front-end without case sensetivity. As postgreSQL's LIKE is case sensitive, we tried ILIKE and SIMILA

Re: [ADMIN] [GENERAL] LIKE and SIMILAR TO

2008-08-22 Thread c k
Thanks to all, I will try to use tsearch2 with some other index and then reply. Regards, CPK On Fri, Aug 22, 2008 at 5:01 PM, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > Hi, > > c k wrote: > >> Hello all, >> As we are migrating our ERP application from MySQL

[ADMIN] Auto recovery feature

2008-08-22 Thread c k
Hello all, As I know and have seen that innodb engine of MySQL does an auto-recovery when MySQL server is crashed or due to power failure. What is with postgreSQL? Does it makes an auto-recovery? and how? Thanks CPK

Re: [ADMIN] Auto recovery feature

2008-08-22 Thread c k
> > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *c k > *Sent:* Friday, August 22, 2008 11:02 AM > *To:* [EMAIL PROTECTED]; pgsql-admin@postgresql.org > *Subject:* [ADMIN] Auto recovery feature > > > > Hello all, > As I know and have seen that i

[ADMIN] odbc error, operator does not exist

2008-08-23 Thread c k
Hello all, As I am testing our old mysql based erp app., on postgresql with most of things are as they are in MySQL db with PG 8.3, Unicode ODBC driver and Access 2003, I got this error: ODBC -call failed. Operator does not exist: date < numeric;error while executing the query. This error does not

[ADMIN] secure connections

2008-09-07 Thread c k
Hello, I have a question regarding secure connections between pg clients and pg server. As per manual for 8.3 we can use openssl for this purpose. does odbc driver supports it and how? Is there any other method for this? Thanks CPK

[ADMIN] Functions

2008-09-15 Thread c k
Dear PG members,I want to know that does begin and end in plpgsql are related to begin transactions and commit? if yes/no how? If I start to execute a function of multiple statements does PG commits each transaction within a function, or whole function as a transaction. Also if first statement make

Re: [ADMIN] [GENERAL] Functions

2008-09-15 Thread c k
On Mon, Sep 15, 2008 at 11:22 PM, c k <[EMAIL PROTECTED]> wrote: > If I have a function having:begin > insert into something ... > select max(primary key) from something.. > end; > > does the second statement within a function can view the results after > execution of

[ADMIN] Multi-processors

2008-09-19 Thread c k
Hello PG Community, Does PG uses multiple processors/cores if available by default on various OSes? What are the limitations on using multiple processors/cores and main memory? Thanks CPK

[ADMIN] logging SQL statements

2008-10-09 Thread c k
Is it possible to log all sql statements submitted to database server in a table in that database it self? This will be different from database logs which are written by db server. Regards, CPK

[ADMIN] Fail of a return query from plpgsql function for a specific table

2009-01-07 Thread c k
Hi all,I have a table accgroups and many others. I have written a test function as follows. CREATE OR REPLACE FUNCTION uf_testfunction() RETURNS SETOF associates AS $BODY$ begin return query select * from associates; return; end; $BODY$ LANGUAGE 'plpgsql' VOLATILE; This works fine for above tab

[ADMIN] different results for large objects

2009-03-17 Thread c k
I am getting correct results with following query i.e. binary objects as they are inserted. select docimages.* from docimages where docimages.accobjecttype=9 ORDER BY docimages.docimagename; but when I created a function as follows, binary objects are not shown, rather a number represting the lar

Re: [ADMIN] [GENERAL] different results for large objects

2009-03-17 Thread c k
17, 2009 at 6:13 PM, Tom Lane wrote: > c k writes: > > I am getting correct results with following query i.e. binary objects as > > they are inserted. > > > select docimages.* from docimages where docimages.accobjecttype=9 ORDER > BY > > docimages.docimagename; &g

[ADMIN] Accessing large objects

2009-03-21 Thread c k
Hello, how to access large objects from the database when using PGAdmin like client applications? When a normal select is executed on lo type columns it gives only the number which refers to large objects stored in 'pg_largeobjects' table. When records from pg_largeobjects are fetched using select

[ADMIN] getting list of columns from a query

2010-08-22 Thread c k
Hi all, As I am using MS Access for a long time, many tools like ms access provides a way to get the list of columns from a query. (using filed list in combo boxes in ms access). But is it possible to get such list of columns from a query where it is not known to the user, that which columns are de

Re: [ADMIN] [GENERAL] getting list of columns from a query

2010-08-23 Thread c k
better if postgres has support for this. Thanks and regards to all, CPK On Mon, Aug 23, 2010 at 4:56 AM, Pavel Stehule wrote: > Hello > > 2010/8/22 c k : > > Hi all, > > As I am using MS Access for a long time, many tools like ms access > provides > > a way to get th

[ADMIN] plpyhton

2010-11-23 Thread c k
Hello, Does calling a pl/python function from each database connection load the python interpreter each time? what are the effects of using pl/python function in a environment where no. of concurrent connections are more and each user calls a pl/python function? Please give the details about how p

Re: [ADMIN] plpyhton

2010-11-23 Thread c k
Hello, Does calling a pl/python function from each database connection load the python interpreter each time? what are the effects of using pl/python function in a environment where no. of concurrent connections are more and each user calls a pl/python function? Please give the details about how p

Re: [ADMIN] [GENERAL] plpyhton

2010-11-26 Thread c k
10 at 11:56:16AM +0530, c k wrote: > > Hello, > > Does calling a pl/python function from each database connection load the > > python interpreter each time? what are the effects of using pl/python > > function in a environment where no. of concurrent connections are more >

[ADMIN] Asynchronous query execution

2010-12-08 Thread c k
Hello, I would like to know how can we execute the queries asynchronously? If we use and execute plpgsql functions they just completes the execution or throws an error on error. In between next sql statement waits for the previous one to complete the execution. But in few situations it is required

[ADMIN] plpython module import errors

2011-04-28 Thread c k
Hello, I have installed postgresql 9 on fedora 14 having python 2.7. Now created plpythonu language in my database and created a simple function to calculate sum of two variables. while importing math libbrary and executing the function i got the error PL/Python: ImportError: No module named cmath

[ADMIN] Python UCS4 error

2011-07-05 Thread c k
Dear All, I updated my development machine with Fedora 15 and as there is python 2.7. I have also migrated my few postgresql databases. While creating plpython in one database, I got the following error undefined symbol PyUnicodeUCS4_AsEncodedString. Then I recompiled source code and got a plpython

Re: [ADMIN] Python UCS4 error

2011-07-05 Thread c k
ng on fedora 14 . It seems that I have to recompile and install python 2.7 at another location and use it for postgresql make process. But not sure that it will solve error. Thanks and regards, C P Kulkarni On Wed, Jul 6, 2011 at 12:24 AM, Tom Lane wrote: > c k writes: > > I updated

Re: [GENERAL] [ADMIN] Python UCS4 error

2011-07-05 Thread c k
yes, shipped with fedora 15 and binary installers are from EnterpriseDB - all in one. CPK On Wed, Jul 6, 2011 at 8:36 AM, John R Pierce wrote: > On 07/05/11 7:34 PM, c k wrote: > >> I have default python 2.7.1 installed along with fedora15. Then installed >> postgresql from

Re: [GENERAL] [ADMIN] Python UCS4 error

2011-07-05 Thread c k
. Regards, C P Kulkarni On Wed, Jul 6, 2011 at 9:25 AM, John R Pierce wrote: > On 07/05/11 8:33 PM, c k wrote: > >> yes, shipped with fedora 15 and binary installers are from EnterpriseDB - >> all in one. >> >> > any reason you didn't use the Fedora 15 native v

[ADMIN] postgresql server crash on windows 7 when using plpython

2011-08-09 Thread c k
Dear Friends, For client requirements, I am testing postgresql 9.0.4 on windows 7 with plpython. First I installed python 2.7 and then added python installation path to windows PATH variable. Then installed postgresql from one-click installer. Server started and every thing was ok. Then I go to cre

Re: [ADMIN] [GENERAL] postgresql server crash on windows 7 when using plpython

2011-08-09 Thread c k
without any error. Chaitanya Kulkarni On Wed, Aug 10, 2011 at 12:57 AM, Adrian Klaver wrote: > > > On Tue, Aug 9, 2011 at 7:54 AM, c k wrote: > >> Dear Friends, >> For client requirements, I am testing postgresql 9.0.4 on windows 7 with >> plpython. First I installed py

Re: [ADMIN] postgresql server crash on windows 7 when using plpython

2011-08-10 Thread c k
ly, there is nothing about the problem. Chaitanya Kulkarni On Wed, Aug 10, 2011 at 12:07 PM, Craig Ringer wrote: > On 9/08/2011 10:54 PM, c k wrote: > > Normal python functions returning text etc. are working but when >> conatining >> >> import sys >> from uuid i

[ADMIN] Using Postgresql as application server

2011-08-13 Thread c k
Dear Postgres users, from last few months I am reading and searching for can postgresql used as application server? As postgresql supports many languages like pl/perl, pl/python etc, supports dblink like functions to connect to other postgresql servers and now features are in development to use ext

Re: [ADMIN] Using Postgresql as application server

2011-08-13 Thread c k
, concurrency etc are not the issues at this time. We have to adopt govt. rules and change the business logic accordingly and it must be fast enough to save penalties. Regards, Chaitanya Kulkarni On Sat, Aug 13, 2011 at 10:54 PM, s...@bestmx.ru wrote: > c k wrote: > > from last few mo

Re: [ADMIN] Using Postgresql as application server

2011-08-13 Thread c k
can u please give me it's link. I found ngx_postgres module. Chaitanya Kulkarni On Sun, Aug 14, 2011 at 12:14 AM, s...@bestmx.ru wrote: > c k wrote: > >> Yes, I know that I can not create a simple web application using only >> postgresql because we need a web server to

Re: [ADMIN] Using Postgresql as application server

2011-08-14 Thread c k
Thanks for everyone. I will give reply after some experiments. Regards, Chaitanya Kulkarni On Sun, Aug 14, 2011 at 6:04 PM, wrote: > On Aug 14 2011, Uwe Schroeder wrote: > > >> >> > can u please give me it's link. >>> > I found ngx_postgres module. >>> > >> there is nginx_htttp_postgresql_

Re: [GENERAL] [ADMIN] Using Postgresql as application server

2011-08-16 Thread c k
I want to use the postgresql for exactly the same use. I want to keep my database separate and use another postgresql machine just as application server. Even for load balancing and scaling we can use many techniques mixed to get the work done. Chaitanya Kulkarni On Tue, Aug 16, 2011 at 11:55 PM,

[ADMIN] Date time value error in Ms Access using pass through queries

2011-09-21 Thread c k
Hello, I got a error yesterday while I have updated my development database to 9.1 from 9.0.4. I backed up my database from 9.0 and restored in 9.1. It well successfully. When running a query which calls a function, having date value as IN parameter, it gives me the error as date/time value out of

Re: [ADMIN] [GENERAL] Date time value error in Ms Access using pass through queries

2011-09-22 Thread c k
ype may be changed in 9.1. C P Kulkarni On Wed, Sep 21, 2011 at 7:05 PM, Adrian Klaver wrote: > On Wednesday, September 21, 2011 3:08:11 am c k wrote: > > Hello, > > > > I got a error yesterday while I have updated my development database to > 9.1 > > from 9.0.4. I bac

Re: [ADMIN] [GENERAL] Date time value error in Ms Access using pass through queries

2011-09-23 Thread c k
rom package I have installed postgres 9.1 using EnterpriseDB one click installer. ODBC driver has version 9.0.3.10 Should I file a bug for this? Regards, C P Kulkarni On Thu, Sep 22, 2011 at 7:42 PM, Adrian Klaver wrote: > On Thursday, September 22, 2011 2:25:40 am c k wrote: > > It shows er

Re: [ADMIN] [GENERAL] Date time value error in Ms Access using pass through queries

2011-09-23 Thread c k
On Fri, Sep 23, 2011 at 3:43 PM, c k wrote: > As I have connected to postgres from MS Access, it thrown the error. > Now I have updated ODBC driver, still same problems comes for 9.1 and not > for 9.0. There should be some thing that has changed in 9.1 release which > prevents from a

[ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread c k
Hello friends, I am checking some logic which includes two functions. One is plsql function which returns text. Second function is plpythonu and contains one statement which outputs notice e.g. results = plpy.execute("select * from software.func1();") plpy.notice("%s" % col for col in results[0])

Re: [ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread c k
python will only return the object > reference. > > Lou Picciano > > ------ > *From: *"c k" > *To: *"pgsql-admin" , > pgsql-gene...@postgresql.org > *Sent: *Saturday, December 3, 2011 12:50:16 PM > *Subject: *[ADMIN] return

Re: [ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread c k
when I modified the notice statement as plpy.notice('%s' %results[0]) it prints notice as NOTICE: {'func1': 'function return text'} I didn't understand why it is showing 'func1' in the results[0] ? C P Kulkarni On Sat, Dec 3, 2011 at 11:31

Re: [ADMIN] returning results from plsql function to plpythonu function

2011-12-03 Thread c k
value2: ",value2) > > > can you please give me the example > I am not a python programmer. > > Nor am I! > Looks like your example, btw, is attempting string operations on something > not yet quite a string! > > Pythons are dangerous. Be careful! > > >

[ADMIN] grouping of query data in xml

2012-01-21 Thread c k
Hi friends, I am working with some xml exporting functionality of our application. I am testing query_to_xml function supported in PostgreSQL 9.1. XML output should be 1 COMPANY ACCOUNT 638168 1. 0. 638168 0. 1. but the output is as follows: a

[ADMIN] Disable TRUST authentication mode

2012-03-10 Thread c k
Hi, Can we disable the trust authentication mode? One of our customer found that few of it's employees are trying to change the data without having any proper rights. The simplest way is to get the control of the server and then change the mode of the authentication to trust and restart the server

Re: [ADMIN] Disable TRUST authentication mode

2012-03-10 Thread c k
superuser accounts. C P Kulkarni On Sat, Mar 10, 2012 at 8:39 PM, Jan Lentfer wrote: > Am 10.03.2012 16:00, schrieb c k: > > > Can we disable the trust authentication mode? >> > > [...] > > > What steps we can take to prevent such access or to dis

Re: [ADMIN] Disable TRUST authentication mode

2012-03-10 Thread c k
It we can disable the TRUST mode then every user have to login with password and every fraud user have to know the password (at least) of the user. It is not the case that users from other departments share their passwords, but fraud users just bypasses the need to know the password. C P Kulkarni

Re: [ADMIN] Disable TRUST authentication mode

2012-03-10 Thread c k
, Mar 10, 2012 at 8:58 PM, Jan Lentfer wrote: > Am 10.03.2012 16:21, schrieb c k: > > It we can disable the TRUST mode then every user have to login with >> password and every fraud user have to know the password (at least) of >> the user. It is not the case that users from ot