[ADMIN] sending data with COPY SQL command, libpq and structure of SELECT resulting buffer

2007-10-25 Thread Adam Radlowski
I sent this message to INTERFACES, but there is no answer, maybe on ADMIN list somebody knows something about it... From the docs i understood, that with COPY SQL command we should use for synchr. sending: PQexec PQResultstatus returns PGRES_COPY_OUT PQputCopyData PQputCopy

Re: [ADMIN] SOS. Database Lost

2007-08-21 Thread Adam Radlowski
Louis, first try to start Your PostgreSQL engine "with a hand" from command line window like this: /usr/local/pgsql/bin/postmaster -D /home/postgres/data/psql ...and look, what's will be happen. Of course, these "/usr/local/pgsql/bin/" shold be Your path do "postmaster" binary and "/home/postgre

Re: [ADMIN] Distributed database with PostgreSQL

2007-06-28 Thread Adam Radlowski
Some ideas: With Slony one the one of these server You can install paralell a "central" database and "slave". They can work on two database clusters with running two PostgreSQL instances (on two different ports). Read the docs about dbmirror too (source tree - contrib/dbmirror). You can make Yo

Re: [ADMIN] replication between linxu postgresql and Windows postgresql

2007-06-25 Thread Adam Radlowski
Mary Anderson wrote: Hi all, I am new to postgresql and have been called upon to set up a database to be used by two groups. One group (mine) is strictly a UNIX shop. The other group (theirs) is strictly a Windows shop. What is the best way to go. First, does postgresql have replicati

Re: [ADMIN] how to add oids field

2007-03-16 Thread Adam Radlowski
gunartha.nyoman napisał(a): hi, I am new comer in this millis... i have a poblem, how to add a field/column in existing table without oids. if i create new table i can add field oids Thank alot before regrads Nyoman/bali So - create a new table with this same structure, but with oids, copy

Re: [ADMIN] What library uses postmaster when lib postgres files

2007-01-11 Thread Adam Radlowski
I checked the libraries used by pg_ctl and postmaster. They use proper libs without use LD_LIBRARY_PATH, but I used it "for safety" in the postmaster starting script. One more big thanks. Adam Jorge Serván wrote: The Libraries used are solved by the liker. Try ldd to show the paths of the li

Re: [ADMIN] Should clients warn in case of server version mismatch

2006-12-07 Thread Adam Radlowski
I had problem such this. I've got 8.1.3 client and 8.0.6 server. But psql 8.1.3 warned me, that some \? functions can not work properly. I've resolved this problem in very simply way. I got binary psql from 8.0.x and run. Psql program is a client program, that uses libpq library, so it is (I th

Re: [ADMIN] problem in logging into database

2006-12-07 Thread Adam Radlowski
Did You specified the database ? In PostgreSQL You are logging into database, not into DBMS, like in MySQL. For test users try template1 first, for example psql -h yourhost -U somebody -d template1 Did You grant those users rights to database wchich they are connecting to ? Regards Adam [EMAIL

Re: [ADMIN] JDBC driver does not accept good md5 passwords

2006-12-06 Thread Adam Radlowski
The problem is resolved. OpenOffice doesn't edit tables without primary key with any driver (I've tried JDBC,native OpenOffice, ODBC). But - the primary key can't be ignored, when it is made on OID. Greetings Adam Adam Radlowski wrote: I'm using very often OpenOffice to ad

[ADMIN] JDBC driver does not accept good md5 passwords

2006-12-05 Thread Adam Radlowski
I'm using very often OpenOffice to administrate databases (It has options, wchich are not present in pgadmin3). If I use JDBC connection and server don't requiers md5 passwords, I can edit and administrate the databases/tables via OpenOffice and JDBC. I can only read the tables. When server requ

Re: [ADMIN] Problem restoring with pg_dump

2006-11-28 Thread Adam Radlowski
I had problems, like that. I've omitted them using "plain" format (SQL script file) of dump file. I restore data from "plain" format with psql - using command "\i FILE". It work always. If You gzip this "plain" file - You become simillar volume of file using binary dump format. Greetings Adam

Re: [ADMIN] psql error

2006-11-02 Thread Adam Radlowski
If "more.com" (not more.exe) in windos XP Pro is not installed in WINDIR/system32 (WINDIR directory is usually after standard installation called WINDOWS), You can it find on install disk in directory "i386" as more.co_ - You shuold extract it with "extract.exe". You can use "more.exe" from DJG

Re: [ADMIN] postgres import

2006-10-31 Thread Adam Radlowski
Achilleas informed You very good. But if Your SQL file comes from other DBMS, like MySQL, You have to a little bit to edit this file, becouse sometimes in those files are used "slangs" characteristical for specific DBMS. If You have SQL file genarated with "pg_dump", You have to be sure, that a

Re: [ADMIN] ERROR: invalid page header in block

2006-10-09 Thread Adam Radlowski
I've tried to do this same thing i "psql" client. It was worked properly. I'm not sure, but maybe Your table on disk is corrupted. Does it work simply: select oid from public.lock and select * from public.lock and SELECT "oid", * FROM "public"."lock" ? Your query will be faster makinkg it that way

Re: [ADMIN] Cant connect to psql on winxp

2006-10-08 Thread Adam Radlowski
Four thigs: 1. Do You have in "postgresql.conf" in section "CONNECION AND AUTENTICATION" active opction (default is 'localhost'): listen_adress='*' (if You want to be more safe, read PDF with PostgreSQL doc chapter 17) 2. You're telneting 83.xxx.xxx.xxx, but You have 62.xxx.xxx.xxx in pg_hba.co

Re: [ADMIN] Recursive use

2006-10-04 Thread Adam Radlowski
I think it is not administration thing, but SQL language problem. PostgreSQL is SQL92 compatible and has many very good and useful addons. Generally, PostgreSQL gives You tools to analyze all, what You want, when You hava data in tables. You've explained in to short way You problem. The best is

Re: [ADMIN] How can i test the installed ODBC-driver in WindowsXP

2006-09-19 Thread Adam Radlowski
There is no test, like in MySQL, for example. If You've installed the "datasource", I suppose, You know the database, server and other connection parameters. You have ony way - to use any application, what can use "datasources", for example Microsoft Office. If it's MS Proffesional (with MS Acce

Re: [ADMIN] pg_dump from crontab

2006-08-10 Thread Adam Radlowski
Try (do not use ">" output stream redirection, but "-f" switch): 0 20 * * 5 /usr/pgsql/bin/pg_dump -F c database -f /usr/backup/friDATE4.pgdump 0 20 * * 4 pg_dump -F c database -f /usr/backup/thurDATE06-3.pgdump Or instead (if it will not work): 1. Put those commands into root crontab file (/var

Re: [ADMIN] defining Your own sort order for already compiled PostgreSQL

2006-05-25 Thread Adam Radlowski
u (it was my problem, not Yours ;-) ). Greetings from Gdynia Adam Robin Iddon wrote: Adam Radlowski wrote: I can't find in the documentation, if it is possible to define our own sort order for already compiled PostgreSQL. I need it, because the best for my now building application were be

Re: [ADMIN] sql-statement blocks maschine

2006-05-23 Thread Adam Radlowski
Run the "top" program. You'll see, that Your server CPU time is strongly take by postmaster. The best way is to have two machines - servers: for database server and for terminals. Maybe good will be to have more than one CPU in the one server and run database server on CPU not used by others ap

[ADMIN] defining Your own sort order for already compiled PostgreSQL (because PSQL sort orders are incopatible with ASCII sort order for non -alpha characters)

2006-05-23 Thread Adam Radlowski
I can't find in the documentation, if it is possible to define our own sort order for already compiled PostgreSQL. I need it, because the best for my now building application were be to build sort with normal LATIN2 sort order (for non alphanumeric chars compatible with ASCII sort order). I saw