Re: [GENERAL] Make MS Access "UPDATE" PostGre SQL Table

2008-03-25 Thread David Spadea
Barry, Per the COPY documentation: *COPY moves data between PostgreSQL tables and standard file-system files. COPY TO copies the contents of a table to a file, while COPY FROM copies data from a file to a table (appending the data to whatever is in the table already). * ...So it's not destructiv

Re: [GENERAL] renumber table

2008-06-19 Thread David Spadea
Steve, Here's your problem and its solution as I understand it: -- Given an example table like this (data isn't too important -- just the sequencing) create table meh ( idserial primary key , word varchar(10) ); -- Populate it with data insert into meh (word) values ('on

Re: [GENERAL] renumber table

2008-06-19 Thread David Spadea
our dependent tables. You can expect performance to suffer if the dependent tables are large, but at least you don't lose referential integrity. Dave On Thu, Jun 19, 2008 at 7:07 PM, David Spadea <[EMAIL PROTECTED]> wrote: > Steve, > > Here's your problem and its so

Re: [GENERAL] 8.4 installer

2009-09-21 Thread David Spadea
> Christine, >> >> What happens if you run it from a command prompt? (Start -> Run -> "cmd")Â >> Can you please post the command line you're using and its output? >> >> Note that you may need to provide a full path to initdb if it isn't

[GENERAL] Determining dead/unused space in a table?

2009-10-18 Thread David Spadea
Hi all, I'm looking to do some reporting on tablespace usage, and wanted to be able to determine how much of the space a table physically occupies is actually in use. 1. I know I can get n_live_tup and n_dead_tup from pg_stat_all_tables, but I don't think that really answers the question entirely

Re: [GENERAL] php + postgresql

2008-07-24 Thread David Spadea
1". That way you can remove the loop altogether and save lots of processing time. -- David Spadea On Thu, Jul 24, 2008 at 5:41 AM, admin <[EMAIL PROTECTED]> wrote: > First, thanks to everyone who responded to my newbie questions yesterday, > all clear now. > > I spen

Re: [GENERAL] Get interval in months

2008-11-08 Thread David Spadea
08-02-01'::timestamp - '2008-01-01'::timestamp AS '1 month' > > Here I want '1 month' and not '31 days' as answer. > > How can I do this? > > Regards, > Gerhard > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFJFVgNa8fhU24j2fkRAq0ZAJ925CHwchm/kZCwTTDcZF/QVXAlewCeMYGL > h3y0pxtiOiDV7pExYiEcSZ0= > =84G4 > -END PGP SIGNATURE- > > -- David Spadea President Spadea Enterprises, Inc http://www.spadea.net