[ADMIN] A problem

2003-06-27 Thread Sam Barnett-Cormack
my colleagues knowledge allowed. I hope someone can suggest something - I'm desperate! It'll take weeks to re-input that data automatically. Thanks -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (

Re: [ADMIN] A problem

2003-06-27 Thread Sam Barnett-Cormack
Late as it is, I'll try this monday. I hope it works, other suggestions still welcome of course, thanks very much. On Fri, 27 Jun 2003, Tom Lane wrote: > Sam Barnett-Cormack <[EMAIL PROTECTED]> writes: > > [ accidentally clobbered pg_control ] > > It sounds like the m

Re: [ADMIN] Help. Pg not running

2003-06-30 Thread Sam Barnett-Cormack
tart again. Then do *nothing* until you have dumped the db to a file, and cleanly resotred from it. You should also manually check for inconsistencies, although if you have correctly used contraints it should barf on input if there are any. Assuming your DB is fully normalised. Hope that

Re: [ADMIN] Help. Pg not running

2003-07-01 Thread Sam Barnett-Cormack
re, just in case. > > > > 4) Trial and error (possibly) until you get the server to start again. > > Then do *nothing* until you have dumped the db to a file, and cleanly > > resotred from it. You should also manually check for inconsistencies, > > although if you have c

Re: [ADMIN] big tables with lots-o-rows

2003-07-01 Thread Sam Barnett-Cormack
;-rw---1 postgres postgres 8192 Jun 30 08:15 35623486.5 > >-rw---1 postgres postgres 512 Jun 30 04:57 35623488 > >-rw---1 postgres postgres 147456 Jun 30 04:57 35623490 > >-rw---1 postgres postgres65776 Jun 29 11:44 pg_internal.init >

Re: [ADMIN] big tables with lots-o-rows

2003-07-01 Thread Sam Barnett-Cormack
On Tue, 1 Jul 2003, Tom Lane wrote: > Sam Barnett-Cormack <[EMAIL PROTECTED]> writes: > > On Tue, 1 Jul 2003, Michiel Lange wrote: > >> _Could_ it be that you're hitting a filesystem limit here? I am not 100% > >> certain, but I believe ext2 by default supp

Re: [ADMIN] Advantages and disadvantages of more than one dbserver

2003-07-03 Thread Sam Barnett-Cormack
y than that. I have a really quite large DB, but I am *really* struggling with 1GB -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University --

Re: [ADMIN] Advantages and disadvantages of more than one dbserver

2003-07-03 Thread Sam Barnett-Cormack
On Thu, 3 Jul 2003, scott.marlowe wrote: > On Thu, 3 Jul 2003, Sam Barnett-Cormack wrote: > > > On Thu, 3 Jul 2003, Daniel Seichter wrote: > > > > > Today memory isn't expensive so with 512MB I can be shure, every user on > > > this server might have enou

Re: [ADMIN] Advantages and disadvantages of more than one dbserver

2003-07-03 Thread Sam Barnett-Cormack
On Thu, 3 Jul 2003, scott.marlowe wrote: > On Thu, 3 Jul 2003, Sam Barnett-Cormack wrote: > > > On Thu, 3 Jul 2003, scott.marlowe wrote: > > > > > We went from 512 Meg to 1.5 Gig and the change was tremendous. That box > > > ran Apache/Postgresql/auth_ldap/L

Re: [ADMIN] Explain

2003-07-07 Thread Sam Barnett-Cormack
> > > > > Jean-Arthur Silve > EuroVox > 4, Place Félix Eboué > 75583 Paris Cedex 12 > T : +33 1 44670505 > F : +33 1 44670519 > > > > > > ---(end of broadcast)--------------- > TIP 3: if posting/reading through Usenet, please send an

Re: [ADMIN] Error message using pg_dump with tar format

2003-07-07 Thread Sam Barnett-Cormack
On Mon, 7 Jul 2003, Nick Fankhauser wrote: > -There is plenty of disk space available. Does it stop at a filesize limit imposed by the OS or filesystem, such as 2.0GB as commonly found on linux, or NFS? Sam ---(end of broadcast)--- TIP 8: explain

Re: [ADMIN] Partitioning tables...

2003-08-01 Thread Sam Barnett-Cormack
On Thu, 31 Jul 2003, Joe Maldonado wrote: > I know in Oracle you can partition the tables into logical subsets and > was wondering if this was also possible in postgres. I *think* that a partial index is probably your best bet. -- Sam Barnett-Cormack Software Dev

[ADMIN] VACUUM/VACUUM FULL/REINDEX

2003-08-01 Thread Sam Barnett-Cormack
also? -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ?

Re: [ADMIN] PostgreSql under Linux

2003-08-06 Thread Sam Barnett-Cormack
s major performance and admin benefits. Only try it if you have a lot of time and/or already know linux well. If you have a *lot* of time, you will gain the knowledge as you go. If you decide to, I'll see you on *that* mailing list. Also, I recommend slackware as an LFS base. -- Sam

Re: [ADMIN] copying databases w/ indexes

2003-08-14 Thread Sam Barnett-Cormack
der of 12 hours to finish. I've been dumping and restoring a very very big database, with indexes, with no such problems. The table details that get dumped setup the indexes, and AIUI the indexes are kept up-to-date as items are added. -- Sam Barnett-Cormack Software Developer

Re: [ADMIN] dbase ODBC error

2003-08-18 Thread Sam Barnett-Cormack
meone has encountered this problem before or knows a solution > please reply. > > > > Jean-Michel Gaudel > > [EMAIL PROTECTED] > > -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [ADMIN] Sobig.f in the list

2003-08-20 Thread Sam Barnett-Cormack
On Wed, 20 Aug 2003, Dani Oderbolz wrote: > Guys, > be careful, > it seems that several Mails in the List have contained > a virus - I guess its sobig.f. Or that a copy of sobig learned the mailing list address and masqueraded as being from the list. -- Sam Barnett-Cormack Softwa

[ADMIN] Partial indexes (was: Re: Indexing a boolean)

2003-08-21 Thread Sam Barnett-Cormack
neral question: Can the planner tell which index to use if there is more than one that fits the bill? Like if there is a full index and one or more partial indexes on a field, can it determine which to use for a given query? -- Sam Barnett-Cormack Software Developer |

Re: [ADMIN] wrong password accepted

2003-08-29 Thread Sam Barnett-Cormack
esblabla, postgres2 .. but it will > reject postgrex eg. If the password mechanism uses standard crypt() passwords, then only the first eight letters count. It just happens that postgres is eight letters long. This has been a public service educated guess. -- Sam Barnett-Cormack Software Devel

Re: [ADMIN] How to read a sequence without incrementing it?

2003-08-29 Thread Sam Barnett-Cormack
alue FROM my_sequence; where my_sequence is the sequence name. try: \d my_sequence; (same substitution as before) for more info. -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancast

[ADMIN] Prompts in psql

2003-09-01 Thread Sam Barnett-Cormack
Is there any way to change the prompt in the psql CLI client? In the same way as one does with bash, or other shells. Ideally I want: [EMAIL PROTECTED]:database $ as the prompt. Anyone got any ideas/references? -- Sam Barnett-Cormack Software Developer | Student of

Re: [ADMIN] Prompts in psql

2003-09-02 Thread Sam Barnett-Cormack
On Mon, 1 Sep 2003, Renney Thomas wrote: > Sam Barnett-Cormack wrote: > > >Is there any way to change the prompt in the psql CLI client? In the > >same way as one does with bash, or other shells. > > > >Ideally I want: > > > >[EMAIL PROTECTED]:database $

Re: [ADMIN] Row locking during UPDATE

2003-09-04 Thread Sam Barnett-Cormack
tation, but it seems > that when lots of processes are waiting to update the same row, it > gets incredibly slow. All trying to access the same row seems a bad idea generally. Instead, why not make it store a new record for each instance, and have a cronjob each day update the statist

Re: [ADMIN] Are 50 million rows a problem for postgres ?

2003-09-08 Thread Sam Barnett-Cormack
rsync logs together using postgres. Works like a charm. You do have to allow that queries are going to take a long time. I use about 6 queries to summarise a quarter's data - each run for each month, so a total of 18 queries. These run in a little over 24 hours. And there are many, many recor

Re: [ADMIN] Are 50 million rows a problem for postgres ?

2003-09-08 Thread Sam Barnett-Cormack
an days I would expect. However, you may want to ensure that all tuning in postgresql.conf is correct, as it may not be using all possible resources. That will probably only make a small difference. -- Sam Barnett-Cormack Software Developer | Student of Physics & Ma

Re: [ADMIN] Are 50 million rows a problem for postgres ?

2003-09-08 Thread Sam Barnett-Cormack
On Mon, 8 Sep 2003, Vasilis Ventirozos wrote: > I use the default comfiguration file with the tcpip enabled > any sagestion about the configuration file ? Post a copy of it to the list, along with the specs of the machine it is running on, and I'm sure we'll all pipe in.

Re: [ADMIN] Are 50 million rows a problem for postgres ?

2003-09-08 Thread Sam Barnett-Cormack
s > #deadlock_timeout = 1000# in milliseconds > #default_transaction_isolation = 'read committed' > #max_expr_depth = 1 # min 10 > #max_files_per_process = 1000 # min 25 > #password_encryption = true > #sql_inheritance = true > #transform_null_equals = false > #statement_timeout = 0 # 0 is disabled, in milliseconds > #db_user_namespace = false > > > > # > # Locale settings > # > # (initialized by initdb -- may be changed) > LC_MESSAGES = 'C' > LC_MONETARY = 'C' > LC_NUMERIC = 'C' > LC_TIME = 'C' > > Hope some of that helps. -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [ADMIN] urgently required: postgresql 7.2.1 for sun sparc solaris

2003-09-19 Thread Sam Barnett-Cormack
thing exist these days and do you know where on earth I can > download it ??? > Many thanks > john clarke > > -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University ---

Re: [ADMIN] Need Urgent Help in case of postgres Database Crash.

2003-10-06 Thread Sam Barnett-Cormack
sssible for me to write > data on to two different disks. if so how? For data redundancy, I reccomend RAID level 0 or 5 - 5 is vastly superior, if you can afford it. > 2. Steps needed to recover the data in case of database crash or hardware crash. Keep regular backups with pg_dump --

Re: [ADMIN] Need Urgent Help in case of postgres Database Crash.

2003-10-06 Thread Sam Barnett-Cormack
On Mon, 6 Oct 2003, Sam Barnett-Cormack wrote: > On Mon, 6 Oct 2003, Somasekhar Bangalore wrote: > > > Hi , > > > > I am setting up a postgres 7.3 database for a big client.I don't want to lose any > > data in case of database crash or hardware failure . I need

Re: [ADMIN] pg 7.4 on debian

2003-11-23 Thread Sam Barnett-Cormack
his case? > > regards, > ivan. > > > ---(end of broadcast)--- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to [EMAIL PROTECTED] so that your >

Re: [ADMIN] Running Postgres Daemons with same data files

2003-12-09 Thread Sam Barnett-Cormack
(end of broadcast)--- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match > -- Sam Barnett-Cormack Software Developer | Student of Physics

Re: [ADMIN] Running Postgres Daemons with same data files

2003-12-09 Thread Sam Barnett-Cormack
ental design flaw in MS Access at least given > how it is marketed. That all said, anyone who tells you MS Access is really an RDBMS should lose their job... -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirr

Re: [ADMIN] Running Postgres Daemons with same data files

2003-12-11 Thread Sam Barnett-Cormack
-(end of broadcast)--------------- > > TIP 4: Don't 'kill -9' the postmaster > > > > ---(end of broadcast)--- > TIP 5: Have you checked our extensive FAQ? > >

Re: [ADMIN] Quick Question Please

2003-12-18 Thread Sam Barnett-Cormack
or a given table name ? > > many thanks for your quick help, > Terry > > > > -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University

Re: [ADMIN] Help: System requirements for postgresql 7.4.1

2004-01-29 Thread Sam Barnett-Cormack
; 1.2. Software: > 1.2.1. OS. (wich versions and patches are required for linux and solaris) > 1.2.2. Required software packages. > > Thank you very much. > > Best regards, > > JCD. > > ---(end of broadcast)----------- > TIP

[ADMIN] Removing OIDs

2004-02-03 Thread Sam Barnett-Cormack
ing to 7.4 -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University ---(end of broadcast)--- TIP 7: don't forget to increase

Re: [ADMIN] hanging for 30sec when checkpointing

2004-02-04 Thread Sam Barnett-Cormack
atantly obvious, > but as it's only really happening on production systems (only place with > the load and the volume of data) I'm loathe to experiment. > > Any help appreciated, > > Cheers, > > Shane > > ---(end of broadcast)

Re: R: [ADMIN] slow seqscan after vacuum analize

2004-02-04 Thread Sam Barnett-Cormack
can, when it uses indexscan timing is good. Only thing I can think of is if storage method had been changed. Not sure if that would even affect it, or if it could do that by itself. Just brainstorming. -- Sam Barnett-Cormack Software Developer | Student of Physics &

Re: R: R: [ADMIN] slow seqscan after vacuum analize

2004-02-05 Thread Sam Barnett-Cormack
On Thu, 5 Feb 2004, Edoardo Ceccarelli wrote: > after a VACUUM FULL ANALYZE (1h!!) things are ok Only a hour - lucky you ;) -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster Uni

Re: [ADMIN] VACUUM Quesition

2004-02-05 Thread Sam Barnett-Cormack
des the vacuum analyze? And which vacuum locks the tables? 'full' is an option to vacuum, essentially, as is 'analyze', so there are four variants (ignoring the freeze option): vacuum vacuum analyze vacuum full vacuum full analyze It's all pretty obvious from

Re: [ADMIN] Problem with too short column

2004-02-06 Thread Sam Barnett-Cormack
e config files ? > > I'm using Postgresql 7.2.2. > > Thanks in advance. > > TOm > > > > ---(end of broadcast)------- > TIP 7: don't forget to increase your free space map settings > -- Sam Barnett-Cormack S

Re: [ADMIN] Upgrading from 7.2 to 7.4.1 on Redhat 7

2004-02-11 Thread Sam Barnett-Cormack
Director of Information Technology > Pisgah Astronomical Research Institute > 1 PARI Drive > Rosman, NC 28772 > (828)862-5554 > www.pari.edu > > > > > ---(end of broadcast)--- > TIP 7: don't forget to increase your free

Re: [ADMIN] Tsearch1 problem

2004-02-24 Thread Sam Barnett-Cormack
on to the server was lost. Attempting reset: Failed. > > !# > > > > Regards, > Oleg > _ > Oleg Bartunov, sci.researcher, hostmaster of AstroNet, > Sternberg Astronomical Institute, Moscow Uni

Re: [ADMIN] Help! Regarding Pg for posgreSQL

2004-03-06 Thread Sam Barnett-Cormack
# > > > > -----------(end of broadcast)--- > TIP 6: Have you searched our list archives? > >http://archives.postgresql.org > -- Sam Barnett-Cormack Software Developer

Re: [ADMIN] Help! Regarding Pg for posgreSQL

2004-03-06 Thread Sam Barnett-Cormack
On Sat, 6 Mar 2004, Bruno Wolff III wrote: > On Sat, Mar 06, 2004 at 12:52:33 +, > Sam Barnett-Cormack <[EMAIL PROTECTED]> wrote: > > In my perl scripts, I have: > > > > use DBI; > > use DBD:Pg; > > > > So maybe this is what you need? > &g

Re: [ADMIN] EPOCH time vs PG timestamp

2004-03-10 Thread Sam Barnett-Cormack
uie Kwan > > ---(end of broadcast)--- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > -- Sam Barnett-Cormack Software Developer | Student of Physics &

Re: [ADMIN] Dynamic IP authentication

2004-03-19 Thread Sam Barnett-Cormack
> way to configure connections so as not to use this file? > Any thoughts would be appreciated. > Thank you! Open access to the whole IP range, but require passwords. I think you can wrap in SSL as well. -- Sam Barnett-Cormack Software Developer | Student of Physics

Re: [ADMIN] Slow Foreign Key

2004-03-22 Thread Sam Barnett-Cormack
ables > recently? Other question that seems, from my experience, to be relevant - are the referenced/referencing columns indexed? -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.

Re: [ADMIN] postgres copy command very slow.

2004-03-26 Thread Sam Barnett-Cormack
ull details of both tables - constraints, indexes, and field types at least. -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University ---(end of broadcast)--

Re: [ADMIN] Accessing Linux Postgre Server from windows client

2004-03-30 Thread Sam Barnett-Cormack
. > Version: 6.0.644 / Virus Database: 412 - Release Date: 26/3/2004 -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University ---(end of broadcast)---

Re: [ADMIN] Accessing Linux Postgre Server from windows client

2004-03-30 Thread Sam Barnett-Cormack
ecked by AVG anti-virus system ( http://www.grisoft.com). > Version: 6.0.644 / Virus Database: 412 - Release Date: 26/3/2004 > > -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancast

Re: [ADMIN] Query with Max, Order by is very slow.......

2004-04-07 Thread Sam Barnett-Cormack
d is only quick if there's an index on the order by field, and and where clause is faster if it can use an index to speed up the query. I would say you might want an index on both of them together, a joint index. -- Sam Barnett-Cormack Software Developer | Stude

Re: [ADMIN] upgrade

2004-05-13 Thread Sam Barnett-Cormack
d to restore my database with this upgrade? You will need to do a dump/restore, yes - you always do when the second part of the version number changes. -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.a

Re: [ADMIN] Help with foreign key creation problem

2004-05-13 Thread Sam Barnett-Cormack
on table2.table1_id? It is a foreign > key in a parent/child 1 to many relationship. > > Please help me understand what is going on, and what I am missunderstanding > about foreign keys. Only slightly, you're creating the wrong way around. You want to be adding the foreign keep to table2. --

Re: [ADMIN] cast not IMMUTABLE?

2004-05-06 Thread Sam Barnett-Cormack
non-immutable internal function, if I know that it *is* really immutable, at least for my purposes, and use a functional index. -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster Univers

Re: [ADMIN] Large database

2004-06-06 Thread Sam Barnett-Cormack
er you describe. The size on disk of the database is 167GiB. It runs just fine, and that's on linux on intel hardware. -- Sam Barnett-Cormack Software Developer | Student of Physics & Maths UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University --

Re: [ADMIN] Upper limit for a dump file?

2004-06-08 Thread Sam Barnett-Cormack
es (DB1 & > DB2) with no problem. It looks like all of the data is intact. Any > ideas what may be the root of the problem or how I can find out more > about this error PQputline returned? Perhaps the other machine has a filesystem limit forbidding such large files? Various filesys

Re: [ADMIN] Continue with the original idea, about JOINS....

2004-06-25 Thread Sam Barnett-Cormack
ining field has the same name in both tables (which is just good design practice). table1 NATURAL INNER JOIN table2, for example, is equivalent to table1 INNER JOIN table2 ON (table1.table2_keyfield = table2.table2_keyfield) Feel free to look in the documentation under 'joins' - it

Re: [ADMIN] pg_xlog

2004-07-07 Thread Sam Barnett-Cormack
On Wed, 7 Jul 2004 [EMAIL PROTECTED] wrote: > Hi, > > Could you please send me an advice how to configure Postgres database > > With non standard pg_xlog directory location i.e. on other (non db) physical > disk ??? One word: symlinks. -- Sam Barnett-Cormack

Re: [ADMIN] How do I grant access to entire database at

2004-07-26 Thread Sam Barnett-Cormack
OT IN ('pg_catalog', 'pg_toast') AND > > pg_catalog.pg_table_is_visible(c.oid) > > ORDER BY n.nspname, c.relname; > > \o > > \i /tmp/grant.sql > > > > > > The above could be put in a script and run from a Unix command prompt.

Re: [ADMIN] How do I grant access to entire database at

2004-07-26 Thread Sam Barnett-Cormack
t;> ON n.oid = c.relnamespace > >>WHERE c.relkind IN ('r','v','S') AND > >> n.nspname NOT IN ('pg_catalog', 'pg_toast') AND > >> pg_catalog.pg_table_is_visible(c.oid) > >>OR