[SQL] Did a good restore

2005-02-08 Thread Joel Fradkin








I just wanted to thank those who helped me.

I finally hit it on the head, was the SQL_ASCHII versus UNICODE.

 

I am not sure why I got my original database in SQL_ASCHII,
but when I did my create with it and restored to it it was fine.

I am going to try my create with UNICODE (the default it
seems unless from command line) and run my app to copy my data over to see if I
can then backup and restore ok with UNICODE. I have the feeling I will be
better off using it as we do anticipate foreign language users.

 

 

Joel Fradkin



 





 




 

 








[SQL] 8 rpms for red hat

2005-02-08 Thread Joel Fradkin
I was able to download the ES3 version (we are running AS3).
I could get (without installing 7) the server to install and run.
I had a few of the RPM's complain (the lib one for example).
I was not sure if this was a needed rpm as I could start the server (did not
try to load data, but will do that this evening).
Is there a better way then just grabbing all the rpms over and clicking on
them?
Up2date does a great job on the rpm's from redhat (resolving dependencies
etc, but I am not doing as well manually clicking on them).

Again thanks for all those who helped me resolve this, I think it was just
because we installed 7 with OS the first time, 8 ran fine but some rpm's
failed to load.

Joel Fradkin
 
Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel.  941-753-7111 ext 305
 
[EMAIL PROTECTED]
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
© 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
 This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.
 

 



---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly


[SQL] Can tsearch replace ilike queries ?

2005-02-08 Thread Antony Paul
Hi all,
I read in another thread about using tsearch for ilike queries. My
question is can it rprovide the full ilike functionality with a better
performance than ilike ?.

rgds
Antony Paul

---(end of broadcast)---
TIP 8: explain analyze is your friend


[SQL] the best way to get the first record from each group

2005-02-08 Thread q2005
Hi,
Is there any better alternative to get the first record from each group?
"subno" is an integer, record with the smallest subno in each group is the
first record in the group.


select itemno, measureunit, extaxprice from itmt_purchase
   where subno in (select min(subno)as subno
   from itmt_purchase
   group by itemno   order by itemno)
   order by itemno, measureunit;



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 03/02/05


---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])


[SQL] Updating selected record

2005-02-08 Thread Levente Lajko








Hi,

 

I have problem with a table from where I select specific
field data 

SELECT filed1, field2 FROM tbl WHERE
progress = 1 LIMIT 1

 through a perl script or multiple instances of that script.
The script sets the progress value of the progressed record to 0, so that other
processes not to access that row. I presume I would need some locking solution,
only I haven’t found the real one. 

 

I hope somebody has a bright idea.

 

Regards,

 

Levi








[SQL] Maximum length of a query

2005-02-08 Thread Antony Paul
Hi all,
What is the maximum length allowed for a query in PG 7.3.3 ?. I
need arbitrarily long queries to be executed through JDBC.

rgds
Antony Paul

---(end of broadcast)---
TIP 8: explain analyze is your friend


Re: [SQL] Updating selected record

2005-02-08 Thread John DeSoi
On Feb 8, 2005, at 9:05 AM, Levente Lajko wrote:
 
I have problem with a table from where I select specific field data
 SELECT filed1, field2 FROM tbl WHERE progress = 1 LIMIT 1
 through a perl script or multiple instances of that script. The  
script sets the progress value of the progressed record to 0, so that  
other processes not to access that row. I presume I would need some  
locking solution, only I haven’t found the real one.

  
I hope somebody has a bright idea.
Maybe you are looking for SELECT FOR UPDATE as in
SELECT filed1, field2 FROM tbl WHERE progress = 1 LIMIT 1 FOR UPDATE;
This locks the row for the remainder of the transaction. See
http://www.postgresql.org/docs/8.0/interactive/sql-select.html#SQL-FOR- 
UPDATE


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?
  http://www.postgresql.org/docs/faq


[SQL] How to know a temp table exists ?

2005-02-08 Thread Antony Paul
Hi all,
If using a connection pool how to know a temp table exists ?

rgds
Antony Paul

---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings


Re: [SQL] Maximum length of a query

2005-02-08 Thread Michael Fuhr
On Wed, Feb 09, 2005 at 11:43:20AM +0530, Antony Paul wrote:
>
> What is the maximum length allowed for a query in PG 7.3.3 ?. I
> need arbitrarily long queries to be executed through JDBC.

According to the following message from Tom Lane, "There is no
specific limit; it'll depend on available memory and complexity of
the statement."

http://archives.postgresql.org/pgsql-general/2003-12/msg01373.php

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]