[ADMIN] Help! Upgrade to 8.4 dropped my databases

2009-08-03 Thread Andrew Perrin
Greetings all- Running postgresql under debian, my standard apt-get upgrade upgraded me from 8.3 to 8.4. As a result, I no longer have access to the databases that were created under 8.3. Typically I would use pg_upgradecluster to fix this problem; however, the upgrade also removed 8.3, and so

Re: [ADMIN] Tracing used SQL statments

2003-06-25 Thread Andrew Perrin
In your postgresql.conf file (on my system this is /etc/postgresql.conf - don't know how standard that is) insert the following line: debug_print_query = on then restart the postmaster (again, on my system: /etc/init.d/postgresql restart) and you'll be on your way. It ends up in the general postg

Re: [ADMIN] postgres access log file

2003-02-28 Thread Andrew Perrin
Use your postgresql.conf file to enable logged connections: log_connections = on -- Andrew J Perrin - http://www.unc.edu/~aperrin Assistant Professor of Sociology, U of North Carolina, Chapel Hill [EMAIL PROTECTED] * andrew_perr

Re: [ADMIN] OT: seeking query help, where?

2003-01-17 Thread Andrew Perrin
, Bruno Wolff III wrote: > On Fri, Jan 17, 2003 at 08:57:14 -0500, > Andrew Perrin <[EMAIL PROTECTED]> wrote: > > I'd suggest something similar to, but slightly different from, what others > > have: > > > > SELECT DISTINCT email FROM (SELECT email FRO

Re: [ADMIN] OT: seeking query help, where?

2003-01-17 Thread Andrew Perrin
I'd suggest something similar to, but slightly different from, what others have: SELECT DISTINCT email FROM (SELECT email FROM table_1 UNION SELECT email FROM table_2) AS combined; that way you avoid duplicates across tables. --

Re: [ADMIN] URGENT: undoing a mistake

2002-10-31 Thread Andrew Perrin
often ap -- Andrew J Perrin - http://www.unc.edu/~aperrin Assistant Professor of Sociology, U of North Carolina, Chapel Hill [EMAIL PROTECTED] * andrew_perrin (at) unc.edu On Wed, 30 Oct 2002, Tom Lane wrote: > Andrew Perrin <[EMAIL PROTECTED]> writes

[ADMIN] URGENT: undoing a mistake

2002-10-30 Thread Andrew Perrin
Folks, I just made a mistake that could be quite costly: I did this: update writer_survey set partid='W41308' where survid in (select survid from participants where partid='W41291' limit 1); when I should have done this: update writer_survey set partid='W41308' where survid in (select survid fr

Re: [ADMIN] command line client on windows?

2002-09-23 Thread Andrew Perrin
You could write a perl script; you'd need to install perl on the windows box and then just wrap an execute() around each command entered. Not exactly elegant but functional. -- Andrew J Perrin - http://www.unc.edu/~aperrin Assist

Re: [ADMIN] multiple instances on one box?

2002-06-03 Thread Andrew Perrin
ill [EMAIL PROTECTED] * andrew_perrin (at) unc.edu On Mon, 3 Jun 2002, Naomi Walker wrote: > At 12:18 PM 6/3/2002 , Andrew Perrin wrote: > >What's the reason for doing this? Just use separate databases -- if > >necessary, with different users given permissions on each -- in the same

Re: [ADMIN] multiple instances on one box?

2002-06-03 Thread Andrew Perrin
What's the reason for doing this? Just use separate databases -- if necessary, with different users given permissions on each -- in the same postmaster instance. ap -- Andrew J Perrin - http://www.unc.edu/~aperrin Assistant Prof

Re: [ADMIN] performance issues with DBI module when data too big

2002-06-03 Thread Andrew Perrin
Are you using the {AutoCommit => 0} argument to DBI->connect()? If not, do so, and then add a $dbh->commit; line when you're done with the inserts. Should help a lot. -- Andrew J Perrin - http://www.unc.edu/~aperrin Assistant Pr

[ADMIN] auto-starting postmaster with -i option

2001-03-20 Thread Andrew Perrin
Greetings. Running 7.0.3 under Debian 2.2, I'd like postmaster to start on boot with the -i option. I've got it working with just the defaults, using start-stop-daemon, but for some reason it ignores the section after the --, which the start-stop-daemon documentation claims will be passed as argu

Re: [ADMIN] gzip, gcc, gmake utilities to install POSTGRES on solaris ???

2000-09-12 Thread Andrew Perrin - Demography
http://www.sunfreeware.com/faq.html#q0 gives details on getting gzip onto your system. There are also copious instructions on how to install everything. - Andrew J. Perrin - [EMAIL PROTECTED] - NT/Unix Admin/Support Department of

Re: [ADMIN] sequence

2000-04-18 Thread Andrew Perrin - Demography
I figured this out recently with the help of the list - you want either nextval() or currval(). In my case, I used currval(). Basically: SELECT currval('table_field_seq'); will return the most recently assigned value to the field *by the current backend* which means: - There's no danger of a

[ADMIN] pg security problem (fwd)

2000-03-22 Thread Andrew Perrin - Demography
Folks- I'm a bit concerned about postgres security. Here's the situation. I've got the following in pg_hba.conf: localall trust sameuser localall trust pgwww host all 127.0.0.1 2

Re: [ADMIN] User permissions

2000-03-16 Thread Andrew Perrin - Demography
Check out the GRANT command in postgres; you'll want to do something like: CREATE USER nobody WITH PASSWORD ; GRANT SELECT ON , TO nobody; However, I like to use suExec under apache to have things run by a different user; that offers somewhat more security. I have scripts that need, for exampl

[ADMIN] NT client issues

2000-03-12 Thread Andrew Perrin - Demography
Greetings. I just downloaded the precompiled NT DBD::Pg perl package. It works great (actually, amazingly quickly - like at least 10x the speed of ODBC), but security seems like a serious problem. The only way the connection works is if I set pg_hba.conf to all trust - any of the authentication