Re: [GENERAL] How to find the number of rows deleted

2005-07-18 Thread Paul Thomas
gable form. Paul Thomas +--+---+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.

Re: [GENERAL] Question about running "Vacuum" through JDBC

2005-05-06 Thread Paul Thomas
n't say what version of the DB and JDBC driver you're using but I have an app which does vavuums via JDBC no problem. Just make sure that you've setAutoCommit(true). -- Paul Thomas +--+---+ | Thomas Micro Sy

Re: [GENERAL] Numeric type

2005-01-27 Thread Paul Thomas
your application. For an accounting application, I would recommend using numeric and using BigDecimal in your Java code. If small rounding errors don't matter the you'll find using double precision (int8) in the databse and double in your Java code s

Re: [GENERAL] Ident authentication

2005-01-24 Thread Paul Thomas
ll all 127.0.0.1/32 ident sameuser # IPv6 local connections: hostall all ::1/128 ident sameuser Swap the first 2 entries round! -- Paul Thomas +--+---+ | Thomas Micro Systems Limite

Re: [GENERAL] Data entry - forms design or other APIs etc. - what is there?

2005-01-22 Thread Paul Thomas
on that front. OpenOffice has forms and database access. It may suit your needs. -- Paul Thomas +--+---+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thoma

Re: [GENERAL] Dump and Restore

2004-08-24 Thread Paul Thomas
l database. Somebody have a cooking recipe about to test if my backup is working fine, and will help if I need sometime? Are you using pg_dump or pg_dumpall? I just use pg_dump on individual databases (pg_dumpall works on the whole cluster) and can restore that to any database. HTH -- P

Re: [GENERAL] Data model for Postfix v2

2004-07-27 Thread Paul Thomas
explains how to set it up with MySQL. Maybe you could use that as a starting point? -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http

Re: [GENERAL] how can Iconnect a Postgres database using odbc in c language?

2004-07-08 Thread Paul Thomas
BC. I suggest you search the net for an ODBC tutorial. You can find the API documentation on Microsoft's web site. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for

Re: [GENERAL] [PERFORM] Visual Explain

2004-06-17 Thread Paul Thomas
On 17/06/2004 12:10 Adam Witney wrote: Will this run on other platforms? OSX maybe? It's a Java app so it runs on any any platform with a reasonably modern Java VM. -- Paul Thomas +--+-+ | Thomas Micro Systems Li

Re: [GENERAL] Database accesss using plperl

2004-06-16 Thread Paul Thomas
27;ve just come back from the pub after a generous quantity of Old Speckled Hen) -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants |

Re: [GENERAL] Setting up Postgresql on Linux

2004-06-09 Thread Paul Thomas
tgresql as user "phil" in order to gain access for my integrated develoment environment? See above. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Co

Re: [GENERAL] insert/update

2004-05-26 Thread Paul Thomas
e I should post to 'novice' for a while! ;) Use a sequence. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thoma

Re: [GENERAL] pg_dump error

2004-05-23 Thread Paul Thomas
ld do as a minimum would be to try to pg_dump each table (excluding any pga_* tables) so at least you've got all of you accounts data. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solution

Re: [GENERAL] serial autoincrement and related table

2004-05-17 Thread Paul Thomas
27;s no such thing as auto-increment fields in PostgreSQL - they are SEQUENCES. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer

Re: [GENERAL] Performance problem with correlated sub-query

2004-04-29 Thread Paul Thomas
ongly recommend upgrading to 7.4 to take advantage of the last ~4 years of continuous improvements. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants

Re: [GENERAL] Question about inserts

2004-04-23 Thread Paul Thomas
valid information is allowed,but the blank values get ignored. By blank, I assume you mean a zero-length string or the request parameter being absent? I think you need to detect these conditions in your perl program anf construct the SQL accordingly. -- Paul Thomas

Re: [GENERAL] RPM init-script: Why the locale setting?

2004-04-04 Thread Paul Thomas
. I'll admit that I don't know what effect this would have but I'm interested to find out. regards -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Compu

Re: [GENERAL] Problems with pg_dumpall

2004-03-23 Thread Paul Thomas
ion? man pg_dump look at the -c option. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thoma

Re: [GENERAL] Case of strings

2004-02-27 Thread Paul Thomas
so use POSIX regular expressions. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-mic

Re: [GENERAL] Differences between postgres and mysql

2004-02-18 Thread Paul Thomas
xpand this list. I haven't used MySQL for about 4 years and always _detested_ it. Happily, on migrating to Linux, I discovered PostgreSQL and I've not touched MySQl since :) HTH -- Paul Thomas +--+-+ | Thomas M

Re: [GENERAL] problem with jdbc connection to postgesql

2004-02-03 Thread Paul Thomas
ct failure) b) your user is allowed to connect to the database using tcp/ip (check pg_hba.conf) c) you are using the correct password for the user. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions

Re: [GENERAL] IDENT and pg_hda.conf

2004-01-30 Thread Paul Thomas
PostgreSQL's data dir. Obviously this may differ from distro to distro. Probably what is happening is that you running locate as regular user which won't have read access to that directoty (it's owned

Re: [GENERAL] Multiway associations

2004-01-25 Thread Paul Thomas
pty fields "just in case" ? One way would be to have a separate vendorpart table something like CREATE TABLE vendorpart ( vendor_id int4, part_idint4 ); which holds the relationships. You'll to define indexes, contraints and foreign ke

Re: [GENERAL] SCO Extortion

2004-01-21 Thread Paul Thomas
they tried their scam on me, I'd report them to the police. There are laws against that sort of thing in the UK. By a strange coincidence, SCO don't have an office this country... -- Paul Thomas +--+-+ | Thomas

Re: [GENERAL] Nested transaction - I am a bank ??

2004-01-14 Thread Paul Thomas
many?) client-side languages you inititiate a transaction by setting auto-commit to off (JDBC and ODBC do this) in the client-side driver. In the case of the PostgreSQL JDBC driver, this causes a BEGIN command to be sent to

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-28 Thread Paul Thomas
w to PG), it made me realise why I was thinking about a PostgreSQL for MySQL users paper. Careful what you say - some people might think you're volunteering ;) -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-28 Thread Paul Thomas
ation. My app is currently PG-only (although I _might_ be able to get it work with Firebird eventually). Currently I have to sell Linux to prospective clients in addition to my app. A native Windows version would make my life a bit easier. -- Pa

Re: [GENERAL] Is my MySQL Gaining ?

2003-12-28 Thread Paul Thomas
TOAD makes Oracle a joy to use). FWIW, TOAD as shipped with Fedora Core 1 has support for PostgreSQL :) -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer

Re: [GENERAL] getting configure options?

2003-12-23 Thread Paul Thomas
On 23/12/2003 21:46 CSN wrote: Is is possible to find out what options (prefix, bindir, etc.) were specified to "configure" when Postgres was built? pg_config --configure HTH -- Paul Thomas +--+-+ | Thomas Mic

Re: [GENERAL] CHECK versus a Table for an enumeration

2003-12-22 Thread Paul Thomas
personal opinion but here goes: For the example you've provided I don't think theres much in it. The second version would give you ability to change the text of the user type if that were important and to add new user types without having to alter constraints. So if I _had_ to choose

Re: [GENERAL] MySQL Gets Functions in Java - Enlightenment Please

2003-12-21 Thread Paul Thomas
ll go away as soon as java version 1.5 comes out but in the meantime, what does everyone think Comments are welcome. On platforms built with GCC3.2+, GCJ might be an alternative. -- Paul Thomas +--+-+ | Thomas Micro Systems Li

Re: [GENERAL] MySQL Gets Functions in Java - Enlightenment Please

2003-12-20 Thread Paul Thomas
s it mean mysql got stored procedures? Wow.. I read it to mean user-defined functions only. Maybe I missed something? -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | |

Re: [GENERAL] Sequence name with SERIAL type

2003-12-17 Thread Paul Thomas
field integer default nextval('mysequence') where you have previously created the sequence mysequence. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Compu

Re: [GENERAL] Firebird and PostgreSQL at the DB Corral.

2003-12-16 Thread Paul Thomas
Partial indexes O -- No partial indexes? Get them to put it on their TODO list ;) BTW, has FB got an equivalent of PG sequences? -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions

Re: [GENERAL] Select for update Question

2003-12-10 Thread Paul Thomas
ore executing the select? -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-syst

Re: [GENERAL] Select for update Question

2003-12-09 Thread Paul Thomas
whose WPImageStateID is now no longer 1. Does this look correct? I think you need to play with a couple of psql sessions to sort this out. I think you might have a race condition here. -- Paul Thomas +--+-+ | Thomas Micro Sy

Re: Triggers, Stored Procedures, PHP. was: Re: [GENERAL] PostgreSQL Advocacy, Thoughts and Comments

2003-11-30 Thread Paul Thomas
(www.sql-ledger.org). It might save you months of effort. You might not have understood me or I am not understanding you. It feels like we're 2 people divided by a common language... -- Paul Thomas +--+-+ | Thomas Mi

Triggers, Stored Procedures, PHP. was: Re: [GENERAL] PostgreSQL Advocacy, Thoughts and Comments

2003-11-29 Thread Paul Thomas
stgres would help alot of PHP guys that are using MySQL. Much of the populatity of MySQL seems to stem from PHPs out-of-the-box support for it. With the MySQL client library license change, this situation will probably change. There was a long thread about this earlier this year. Check the

Re: [GENERAL] Large objects [BLOB] again - general howto

2003-11-29 Thread Paul Thomas
ntally cut off a transfer, or stop one before it ever starts. How could a connection ever have the kind of "thread-safe" behavior you seem to believe it should have? -- Paul Thomas +--+-+ | Thomas Micro Systems Limited

Re: [GENERAL] PostgreSQL Advocacy, Thoughts and Comments

2003-11-28 Thread Paul Thomas
The developers and advocates are not making $xx per box shifted or trying to seduce users down a supposedly free path into their licensed software lair. That has a big effect on advocacy. Instead of smarmy marketing types who rely on spread FUD and misinformation about every product they consi

Re: PostgreSQL, MySQL, etc., was Re: [GENERAL] PostgreSQL is much faster than MySQL, only when...

2003-11-27 Thread Paul Thomas
way to do something like this? It has occurred to me that when table spaces are supported, then this would be much easier (have a HEAP table space sitting on a ramdisk). If your table is that small, you could just cache it in your application. -- P

Re: [GENERAL] RHEL

2003-11-14 Thread Paul Thomas
On 13/11/2003 19:32 Rick Gigger wrote: Does anyone have any experience with postgres on fedora? Fedora ships with 7.3.4. I've got it running nicely on a laptop. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Li

Re: [GENERAL] [Fwd: [LIH]OpenOffice.org 1.1 <-> PostgreSQL connectivity]

2003-11-03 Thread Paul Thomas
ut it works quite well. Hopefully, enough people will try it and give feedback to enable it become part of the next OO release. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Bus

Re: [GENERAL] PostgreSQL License Question

2003-11-03 Thread Paul Thomas
closed-source derived version. Unlike the GPL, there are no issues of derived works or licensing issues if you compile your software to include PostgreSQL headers or libraries. So develop whatever you want and release as either open or closed source as fits your needs. HTH

Re: [GENERAL] Pgsql 7.3.3 on redhat 7.2

2003-10-24 Thread Paul Thomas
onfig --configure to get all the original options which the RMP version was built with. I then supply these options to the configure script. This way, I know that the new version will over-write the old version.

Re: [GENERAL] Question about connection java and Postgresql in Linux

2003-09-20 Thread Paul Thomas
you're just starting out experimenting with PostgreSQL and Java, it's one less thing to have to worry about for now. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smalle

Re: [GENERAL] About Pgdump

2003-09-19 Thread Paul Thomas
to the postgres superuser to do the backup or maybe use a .pgpass file (needs at least 7.3 IIRC). HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer

Re: [GENERAL] Cannot createdb

2003-09-08 Thread Paul Thomas
r name so its really easy to create databases and other users without su'ing around. On production machines, I set up a dba user. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Sm

Re: [GENERAL] Multiple Connections

2003-09-02 Thread Paul Thomas
hing similar to this ... if exists) > > Have you tried using AS connection-name in your EXEC SQL CONNECT ... > statement? > Hi! ... I don't know thar statement ... Can you explain me more??? Thanks. It's in section 4.2 of ECPG docs. -- Paul Thomas +--

Re: [GENERAL] The ..... worm

2003-08-22 Thread Paul Thomas
x27;ve noticed a massive drop in Code Red "get default.ida.." requests to the web server on my DSL line. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business

Re: [GENERAL] Mail server load

2003-08-20 Thread Paul Thomas
t of the daily spam. Like most people from the non-M$ world, this sort of thing just passes me by :) -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultant

Re: [GENERAL] Moving from MySQL

2003-08-14 Thread Paul Thomas
perl. Which version of Postgres would people to recommend? The latest production release is 7.3.4. I'd recoomend using that. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Sm

Re: [GENERAL] tsearch2 on postgresql 7.3.4

2003-08-09 Thread Paul Thomas
l? what files do i need to move into $libdir directory to get tsearch2 up and running? Thanks! I just tried a make/make install using 7.3.3 sources. I think the problem is that the make file copies the .so to /usr/lib/postgresql which might not be in your lib path. HTH -- Pau

Re: [GENERAL] Basic questions before start

2003-07-29 Thread Paul Thomas
be a bit slower. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.

Re: [GENERAL] database design of products catalogue

2003-07-21 Thread Paul Thomas
n from the user's perspective (the use cases). What attributes are to be displayed for different parts? Are they all similar? Do the screens make separate tables seem more natural? HTH -- Paul Thomas +--+-+ | Thoma

Re: [GENERAL] Checkpoint question

2003-07-21 Thread Paul Thomas
tests with number of wal buffers and not seeing a big difference even when large numbers were used. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Co

Re: [GENERAL] Are you frustrated with PostgreSQL

2003-07-15 Thread Paul Thomas
rogramming? All fairly straight forward IME. 4. Overall, do you like PostgreSQL? Would you recommend it over MySQL? 100% of the time. 5. How often do your PostgreSQL run into problem or crash? Are most of the problem caused by PostgreSQL itself? I've never had a problem

Re: [GENERAL] weird quote bug

2003-06-30 Thread Paul Thomas
e . An alternative might be to try adding an ESCAPE '' clause at the end (also in the same doc section). HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Sol

Re: [GENERAL]

2003-06-25 Thread Paul Thomas
r Could not connect to the database I would also like to know how to restart postmaster to reinitialize changes if someone could help me out on that. Depends on which *nix flavour/distribution you're using. I use Red Hat Linux and service postgresql res

Re: [GENERAL] Eliminating start error message: "unary operator expected"

2003-06-23 Thread Paul Thomas
running very well but we want to get rid of this message. Thanks in advance for your response You may have a typo in /etc/rc.d/init.d/postgresql. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the

Re: FW: [GENERAL] Allowing user to connect to a database?

2003-06-19 Thread Paul Thomas
200.200.200.1 to 200.200.200.254. The rules for sub-nets and sub-net masks can be a bit confusing and I've yet to find a tutorial on-line which is easy to follow. It might help you to think of 200.200.200.0 as 200.200.200.*. HTH -- Paul T