Re: [ADMIN] sleep?

2005-08-22 Thread Don Drake
Thanks for all of the replies.  I recompiled my DB with plperlu and am using perl's sleep function. I agree that a basic function (non-CPU intensive sleep) like this should be built in. Thanks again. -Don On 8/21/05, John DeSoi <[EMAIL PROTECTED]> wrote: On Aug 21, 2005, at 5:09 PM, Guido Barosi

Re: [ADMIN] sleep?

2005-08-22 Thread Michael Fuhr
On Mon, Aug 22, 2005 at 08:34:29AM -0500, Don Drake wrote: > I agree that a basic function (non-CPU intensive sleep) like this should be > built in. It's being discussed in pgsql-hackers: http://archives.postgresql.org/pgsql-hackers/2005-08/msg00633.php Do you have any use cases in addition to

Re: [ADMIN] sleep?

2005-08-22 Thread Bruce Momjian
Michael Fuhr wrote: > On Mon, Aug 22, 2005 at 08:34:29AM -0500, Don Drake wrote: > > I agree that a basic function (non-CPU intensive sleep) like this should be > > built in. > > It's being discussed in pgsql-hackers: > > http://archives.postgresql.org/pgsql-hackers/2005-08/msg00633.php > > Do

[ADMIN] regenereate data/ locales

2005-08-22 Thread Maxi Combina
Hello, I am using postgresql 7.4.5, and was having some trouble with the initcap() function. The problem was the following: initcap('aéeou') = AéEou, and I need initcap('aéeou') = Aéeou, I found in the documentation that to correct this behaviour, I must run initdb --locale=SOMETHING. Well, I di

Re: [ADMIN] regenereate data/ locales

2005-08-22 Thread Alvaro Herrera
On Mon, Aug 22, 2005 at 11:10:54AM -0300, Maxi Combina wrote: [must run initdb to switch locale] > > Is there any shorter way to change the locales? I didnot found any > `recreate' or `regenerate' command. No, initdb is the only option. -- Alvaro Herrera () "El número de instalaciones de UNIX

Re: [ADMIN] Corrupted data, best course of repair?

2005-08-22 Thread Tom Lane
Sean Chittenden <[EMAIL PROTECTED]> writes: > Today I was charged with fixing a DB, and upon looking into it, I > discovered that there was gigs upon gigs of the errors from below. > Has anyone seen this or, more interesting to me, recovered from this > kind of a failure mode? > Here's a bit of ba

Re: [ADMIN] sleep?

2005-08-22 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian writes: > > Michael Fuhr wrote: > >> Do you have any use cases in addition to what's already been > >> mentioned? Sleeping isn't really a database operation, so there > >> needs to be some justification for making it a standard function. > > > Well, we needed it f

Re: [ADMIN] sleep?

2005-08-22 Thread Tom Lane
Bruce Momjian writes: > Michael Fuhr wrote: >> Do you have any use cases in addition to what's already been >> mentioned? Sleeping isn't really a database operation, so there >> needs to be some justification for making it a standard function. > Well, we needed it for our own regression tests, s

[ADMIN] connect to postgres from shell scripts

2005-08-22 Thread Hemapriya
Hi, I would like to know how to connect to postgres from shell scripts using a password protected user. Is there a way to embed the password in psql login. It keeps prompting for the passwords. Any hint is appreciated. Thanks Priya

[ADMIN] Indexes (Disk space)

2005-08-22 Thread jose fuenmayor
Hi all, I have the following question. Is there anyway for me to know how much space on disk will ocupy an index, created in a determined row or rows of a table?, anything like a rule, formula, calculation? that allow me to know in advance how much space will the index use before actually created

Re: [ADMIN] Corrupted data, best course of repair?

2005-08-22 Thread Sean Chittenden
> They run with fsync off AND they like to toggle the power switch at > random? I'd suggest finding other employment --- they couldn't > possibly be paying you enough to justify cleaning up after stupidity > as gross as that. Colo-by-windows. If there weren't DBAs with Win32 admin tendencies, I'

Re: [ADMIN] connect to postgres from shell scripts

2005-08-22 Thread Jason Minion
Take a look at the .pgpass file, some info at: http://www.postgresql.org/docs/8.0/interactive/libpq-pgpass.html Doing that, your password is still as secure as your .pgpass file, which hopefully is more secure than your script. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [ADMIN] connect to postgres from shell scripts

2005-08-22 Thread Devrim GUNDUZ
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On Mon, 22 Aug 2005, Hemapriya wrote: I would like to know how to connect to postgres from shell scripts using a password protected user. Is there a way to embed the password in psql login. It keeps prompting for the passwords. psql checks f

Re: [ADMIN] sleep?

2005-08-22 Thread Goulet, Dick
Bruce, Agree that pausing or sleeping is not really a database function, more of a programming function. But Oracle and I understand though I can't find it at the moment SQL*Server do offer this functionality within their DB's just because people do store functions and procedures that are

Re: [ADMIN] connect to postgres from shell scripts

2005-08-22 Thread Tom Lane
Devrim GUNDUZ <[EMAIL PROTECTED]> writes: > psql checks for PGUSER, PGPASSWORD, PGHOST, PGPORT, PGDATABASE and some > other environmental variables. Export relevant values to the parameters. PGPASSWORD is deprecated because it is insecure on some platforms (to wit, those where other users can see

Re: [ADMIN] how to protect root access database

2005-08-22 Thread Scott Marlowe
On Fri, 2005-08-12 at 22:37, wisan watcharinporn wrote: > i have database with critical data (such patient information) > how can i protect my database from root access > because this host in company can access with root from many person > (person who manage some service application on host but mus

Re: [ADMIN] postgres optimization (effective_cache_size)

2005-08-22 Thread Scott Marlowe
On Fri, 2005-08-12 at 17:48, [EMAIL PROTECTED] wrote: > Hello, > > I followed this advice for picking a good effective_cache_size value > (below) from Scott Marlowe, and run into a bit of trouble: > > I looked at the `top' output and saw "721380k cached". > So I calculated the effective cache siz

Re: [PHP] [ADMIN] Data insert

2005-08-22 Thread Jim C. Nasby
On Sun, Aug 21, 2005 at 06:35:22AM +0100, Aldor wrote: > if you want to insert biiig data volumes try either using COPY instead > of INSERT - it will run much much faster And if for some reason you have to stick with inserts, group them into transactions; it will perform much better than individu

Re: [ADMIN] error codes in postgresql

2005-08-22 Thread Sivakumar K
  Hi sandhya,     I really wonder if the function name is pg_field_type (res, col_no). The function name which returns the field type of a particular column is PQftype (res, col_no). This returns the field type as oid.The oid of the built-in data types can be found in src/incl