CONTEXT: PL/Perl function "func_some_fun"
Is there any way to suppress this as I don't really need it?
Thanks
Alex
ever since upgrading to version 9.0 I also get this annoying string
CONTEXT: PL/Perl function "func_some_fun"
Is there any way to suppress this as I don't really need it?
Thanks
Alex
Good morning,
I'm trying to make a Postgre profiler reading
pg_catalog.pg_stat_activity.
But when I read that view... I always find my query.
Example:
ResultSet rs = st.executeQuery("SELECT query_start,current_query FROM
pg_catalog.pg_stat_activity where xact_start is not null");
while(rs.next()
It seems that I don't get the postgresql server installed or available
for me to run in admin tools then services. postgresql is not listed as
a service available to start or stop!
Why do I not get the service installed and running?
--
Sent via pgsql-general mailing list (pgsql-general@postgre
Using Windows 7 64 bit. Tried to install 8.4 and 9.0and it fails right
near the end when it tries to create or read the conf file. If I
transfer my postgres 8.4 file over the upgrade takes but the postgres
service doesn't exist so no communication occurs.
Is there anyway to just install the po
)*b3 + (a4-a2)*b2 + (a4-a1)*b1 i.e (7-6)*64 + (7-5)*34 +
(7-3)*11 = 64+68+44=176
Has anyone a clever solution for that problem?
Thanks for any suggestions.
Alex
Hi,is there an easy way to return the date of every first Saturday of a month
in a data range i.e. 2011-2013
Any help would be appreciated
ThanksAlex
.
Alex
_
If It Exists, You'll Find it on SEEK Australia's #1 job site
http://clk.atdmt.com/NMN/go/157639755/direct/01/
rformance Problems
> Date: Fri, 18 Dec 2009 15:25:16 -0500
> From: t...@sss.pgh.pa.us
>
> Alex - writes:
> > Now here is what I noticed.
> > a) if I run it in the morning, processing starts very slow, but after a few
> > thousand records it will speed up
Thank, I will check that out.
> To: ainto...@hotmail.com
> CC: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] PL/Perl Performance Problems
> Date: Fri, 18 Dec 2009 15:36:15 -0500
> From: t...@sss.pgh.pa.us
>
> Alex - writes:
> > I actually looked at that to
0 1238 6720 2611 352 15 1 75 10 0
> To: ainto...@hotmail.com
> CC: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] PL/Perl Performance Problems
> Date: Fri, 18 Dec 2009 15:36:15 -0500
> From: t...@sss.pgh.pa.us
>
> Alex - writes:
> > I actually looked
rmance Problems
>
> Alex - wrote:
> >
> > Tom, I am logging these stats now, but i am having a similar issue. both
> > jobs in the morning and after noon insert about 400k records (200k each)
> > In the morning that job takes 450secIn the afternoon only 150; No sele
Hmm...how can that be. This is happening every day, so its not a one off or
happens once in the morning then in the afternoon. There is also no other task
running on the system, its dedicated to postgres.
Could the Autovacuum cause problems? Starting to invoke Analyze at the
beginning of the da
18 Dec 2009 23:45:07 -0700
> Subject: Re: [GENERAL] PL/Perl Performance Problems
> From: scott.marl...@gmail.com
> To: ainto...@hotmail.com
> CC: t...@sss.pgh.pa.us; pgsql-general@postgresql.org
>
> On Fri, Dec 18, 2009 at 11:37 PM, Alex - wrote:
> > Hmm...
> > how can
On a 2nd thought... where does the cach come into play when i only do inserts
and no selects.
Alex
> Date: Fri, 18 Dec 2009 23:45:07 -0700
> Subject: Re: [GENERAL] PL/Perl Performance Problems
> From: scott.marl...@gmail.com
> To: ainto...@hotmail.com
> CC: t...@sss.pgh.pa.us
a query 3 Tables, 10-20M records
>- inserts a record in Table B .. about 50K
> 3. Returns some stats on the whole operation (100 records).
>
> On Sat, Dec 19, 2009 at 12:07 AM, Alex - wrote:
> > On a 2nd thought... where does the cach come into play when i only do
> >
ugh these records about 50K in total
>- for each runs a query 3 Tables, 10-20M records
>- inserts a record in Table B .. about 50K
> 3. Returns some stats on the whole operation (100 records).
>
> On Sat, Dec 19, 2009 at 12:07 AM, Alex - wrote:
> > On a 2nd thought...
s
> Date: Sun, 20 Dec 2009 22:39:00 -0500
> From: t...@sss.pgh.pa.us
>
> Alex - writes:
> > Tom, Scott, Alvaro,thanks for the hints on this issue. It looks as if one
> > of the EOD maintenance jobs which does a few extensive queries does push
> > data out of memory le
Hi,i am adding comments to tables and functions with version information and
would like to extract that information through a query.
Is there and easy way to do that? simple list. table_name, comment
ThanksAlex
help on that.
Alex
_
A world FIRST in property search has arrived! Check out Domain Radar NOW!
http://clk.atdmt.com/NMN/go/157631292/direct/01/
Hi,i have a PL/PERL RETURN SETOF function which processes a few 10k records.The
processing takes quite some time and in order to display progressI use a
return_next after every few thousand records.
However, the function returns all messages when it completes and exists which
is not really what
Hii am experience slow queries when i run some functions. I noticed the
following entries in my server log.
>From this, can anyone tell me if I need to change some config parmeters?
System has 18GB Memoryshared_buffers = 4GB# min
128kBtemp_buffers = 32MB #
Greg,thanks for the suggestions, will try an test.
You wrote: That just suggests that the system was mostly idle during that
period.
Thats actually not the case, it was just the time the function finished.
Alex
Date: Fri, 22 Jan 2010 01:21:59 -0500
From: g...@2ndquadrant.com
To: ainto
. Couldn't find anything in the manuals either.
Can anyone point me in the right direction or tell me what's wrong with my
statement.
Thanks for any help.
Alex
So this seems to be because the result size is too big. I still don't
know why it is looping through every record and printing a warning,
but adding a LIMIT makes the queries complete in a reasonable time
(although not all that fast).
However I need to sort and also have many other facets that ma
key is Null, then no change has been logged yet.
Is there an onther way to implement that? A) seems to be easier but how
about the performance? Can A) be done with a simple view too ?
Any suggestion is appreciated
Thanks
Alex
---(end of broadcast
to retrieve the last 2 dates in record
100| 2005-04-01 | 2005-03-01
200| 2005-04-01 | 2005-03-01
Thanks
Alex
---(end of broadcast)---
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
Julian Scarfe wrote:
From: "Alex" <[EMAIL PROTECTED]>
- How can i select only the newest record for each ProdId ?
100| 2005-04-01
200| 2005-04-01
DISTINCT ON was made for this and on the similar tables I have
performs rather more efficiently than using a subquery.
se
t.
(i know that bellow example does not require a function, just want to
get a feel for it.)
Thanks in advance for any tips.
Alex
DROP FUNCTION get_item ();
DROP TYPE my_items;
CREATE TYPE my_items AS (
item_id INTEGER,
description TEXT,
order_date DATE
Hi,
could anyone help me with a problem I am having creating a plperl function.
The return always complains with the following error:
composite-returning Perl function must return reference to hash
Thanks
Alex
CREATE TYPE sometype AS
( jid INTEGER,
start_time TEXT
Hi,
I am using the timestamp various tables but dont like to see the
microseconds.
Is there way to format the output of timestamp fields globally (in the
postgres.conf)?
Preferably i only would like to see the MMDD HH:MM:SS.
Or can a formatting be passed to a SELECT * hmmm probably n
TIMESTAMP also a DATETIME
type that returns |'-MM-DD HH:MM:SS'. So, I was wondering if there
is anything similar in postgres or can i set the precision or format of
the timestamp in the postgres.conf or can I define a new type.
Alex
|
Joshua D. Drake wrote:
Alex wrote:
Hi,
Hi,
is there a way to use postgres to check if a date provided is valid and
would return true or false.
Thanks
Alex
---(end of broadcast)---
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
to be to logical choice, but will it actually be faster
and moreover is that the right way to do it?
Thanks
Alex
---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to
Will give that a try. thanks.
was actually interested if the 2nd approach is common practice or if
there are some reasons not to do it that way.
Alex
Sean Davis wrote:
On 11/9/05 9:45 AM, "Alex" <[EMAIL PROTECTED]> wrote:
Hi,
have just a general question...
I hav
Hi,
could anyone tell me if it is necessary to run a Vacuum after truncating
a table or is that done automatically.
Thanks
Alex
---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster
pens to scratch yours, more the merrier.
-alex
---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html
ard compatibility (to perl 5.4 for example)
or not. Or whether I even care about backward compatibility. I'll remove
it in next release, I suppose.
-alex
---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
are appreciated.
Thanks
Alex
---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings
with RAID1 ( mirroring )
I use Debian Sarge and im very happy.
Perl is very slow, maybe you can use PHP ?
Alex wrote:
Hi,
we are planning to upgrade our servers but deciding on the right
configuration seems to be quite difficult.
As for the system. About 50 tables, 20M records and growing about
The comment about HW vendor was regarding Raid configuration not the
software.
Geoffrey wrote:
Alex wrote:
Hmm...
I read that Raid5 is suggested over Raid1. Also HW vendors told us that.
Php :-) is not an option and I dont believe Perl is a bottleneck as
well.
Why would your HW vendor be
We use perl for the heavy batch jobs, the web interface is written using
JSP / applets.
If we would change these then it would be Java or C. But all the heavy
stuff is handled by Stored Procedures so I dont see a real need for a
change.
I actually am more interested to hear if there are an rec
uot;nval_price_hist_idx3" btree (price_id)
"nval_price_hist_idx4" btree (sec_code, nval_price_date)
Thanks
Alex
---(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
Alex
---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html
Richard,
thanks for the reply. I actually did what you suggested but still the
same. Now i set ENABLE_SEQSCAN=false in the perl script which works but
I dont think thats the way it shold be done.
Alex
Richard Huxton wrote:
Alex wrote:
Hi,
I have a query that runs pretty slow and tried to use
cleanup at the end of the month does not help a lot. it speeds
things up but nowhere close to what it would be after recreating the db.
Alex
Richard Huxton wrote:
Alex wrote:
Hi,
we have a database. not to big about 50 tables, 20m records. On a
daily basis we update/insert/delete between 500k to
Thanks for the suggestions.
I run a vaccum analyze every night. I will look into all the options you
suggested.
Thanks
Alex
Richard Huxton wrote:
Alex wrote:
It a gradual process. For example, we have 3 reference tables that
get updated very day. they have between 3,5 and 7M records. All we
Hi,
i have a unique index on a table over multiple columns. If now one of
the records has a null value in one of the indexed columns i can insert
the same record multiple times.
Is this a problem within postgres or expected?
Example:
index unique, btree (colA, colB, colC);
would still allow me t
I actually just wanted to know if there is a way around this problem.
Obviously it is implemented that way for whatever reason.
I still though think some arguments given in some of the replies, while
probably correct, are besides the point.
I use a unique index that may contain null values. On
entire copy job?
Alex
---(end of broadcast)---
TIP 6: explain analyze is your friend
statement?
Thanks for any advise
Alex
---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings
Thanks ,
this one works beautifully.
Alex
PS: also thanks to the other suggestions, have a look at this one
hubert depesz lubaczewski wrote:
On 12/7/05, *Alex* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
I have a table where I store changes made to an order. Th
a function but I wonder if there is an
easier and faster way.
Any suggestion or help would be appreciated.
Thanks in advance
Alex
---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index
function returns.
Thanks for any advice.
Alex
---(end of broadcast)---
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
the time.
The weird thing however is, that normal inserts seem to be much faster
on the new system and I am wondering if it is Postgres or HW related.
Does anyone has an advise ?
Thanks
Alex
---(end of broadcast)---
TIP 4: Don't 'ki
very slow, the screen almost freezes.
Thanks
Alex
Doug McNaught wrote:
Alex <[EMAIL PROTECTED]> writes:
Hi,
I just installed pg 7.4.1 on a new system P4, 3.2Gh HT, 1GB Mem, RH9
and discovered that some of the processes have become extremely
slow. Mainly I am talking about a SELECT COUNT
Yup, DMA is not enabled, probably that is the problem. Tried to enable
it but get an error HDIO_SET_DMA failed: Operation not permitted.
Thanks for the hint.
Alex
Doug McNaught wrote:
Alex <[EMAIL PROTECTED]> writes:
The old system has a 80GB, 5200rpm ATA , the new system a 120GB,
7
tomcat every night which is not a bad thing anyway
but still am wondering what the real reason could be.
Alex
Kris Jurka wrote:
On Tue, 20 Jan 2004, Alex wrote:
Hi,
I am getting the following error when running an update from a JAVA
program using a Tomcat Connection Pool.
SQLException: Error
219' AND A.sec_code=123456 AND Z.ref_code=123456 LIMIT
10;
Thanks for any help.
Alex
---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html
Hi,
what is the recommended way to run multiple databases under postgres.
In MySQL it is rather simple to give different users or websites their
own database with all the access rights.
Any suggestion or links to documents are highly appreciated.
Alex
---(end of
topic
here :-)
Cheers
Alex
Frank Finner wrote:
On Sun, 28 Mar 2004 14:24:15 +0900 Alex <[EMAIL PROTECTED]> sat down, thought long and
then
wrote:
Hi,
what is the recommended way to run multiple databases under postgres.
In MySQL it is rather simple to give different users or websites thei
Hi,
when I run a SELECT INTO and the result is 0 or zero row, then I still
get a positive result if
using IF FOUND THEN
Is there a problem or do we need to use ROW_COUNT instead ?
Alex
---(end of broadcast)---
TIP 3: if posting/reading
Hi,
I am having problems in forming a dynamic query that can be used in
Execute statements.
Problem:
I have database fields that are either INT or VARCHAR. Both can have NULL.
If I use variables that hold the db field's values ... how do I need to
quote them to pass them to the query string.
e
cuted in psql result = 0
rows. However I do get the return string "found" back.
Alex
Tom Lane wrote:
Alex <[EMAIL PROTECTED]> writes:
when I run a SELECT INTO and the result is 0 or zero row, then I still
get a positive result if
using IF FOUND THEN
I recall Neil Con
Hi,
I have some problems with creating a query that will replace values in
one table from another one.
Table 1:
userName : refCode1 : refCode2
--
alex : 12 : 24
Table 2:
refCode : ActualCode
-
12 AA
24 BB
Hi,
is there an easy way to get the Difference between 2 dates in Days... as
an integer?
age('date1','date2') results in x years y days or something similar.
but I would like to
have the result in number of days as an integer.
Thanks for your help
Alex
--
Joe, that is good news.
When will be 7.4 availbable?
Also,
what i actually wanted is to ckeck that if lets say ARRAY[1,2,3]
is inserted but 1,2 or 3 (the the entire array) is not present in the
reference table.
Will that be available too ?
Alex
Joe Conway wrote:
Alex wrote:
a) index array
appreciated.
Alex
---(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
Ron,
the idea is to provide a table where users can define filters. But it
this table may be as well empty.
Alex
Ron Johnson wrote:
On Sun, 2003-08-31 at 11:56, Alex wrote:
Hi,
I have a query where I want to filter out records from table_a if a
field in table_a matches in table table_b
Hi,
I have tables that have default records that must not be deleted or
modified.
Is there an easy way to do this. Like setting a trigger on the Primary
key value ?
Alex
---(end of broadcast)---
TIP 2: you can get off all lists at once with the
Jeffrey,
second solution is a beauty... thanks a lot.
Alex
Jeffrey Melloy wrote:
If I'm understanding you correctly, you can do something like:
select cola,
colb,
exists
(select 'x'
from tableb
where co
?
Thanks
Alex
---(end of broadcast)---
TIP 8: explain analyze is your friend
postings on the net
suggesting otherwise. Is there anything to pay attention too ?
Thanks for any advise
Alex
---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster
le 1100111 = SM--TFS.
thanks for any suggestions
Alex
---(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
Hi,
is there a document available describing the changes / additions in 7.4 ?
Thanks
Alex
---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
Hi,
I have two tables,
Table A: item_id
Table B: item_id, ref_code
and i want to list all ref_codes in table B that are not referenced by
Table A.
Table A has about 3million records./ table B 200
What is the best way to do that ?
Thanks
Alex
---(end of broadcast
Hi,
is it possible to concatenate two rows (same or different data type)
into one.
like First Name, Last Name or ZIP City etc.
Thanks
Alex
---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster
All,
thanks for the many suggestions
Alex
Manfred Koizar wrote:
On Thu, 20 Nov 2003 16:52:37 +0900, Alex <[EMAIL PROTECTED]> wrote:
Is there an easy way to write a select statement that returns me the
frist free number or any within the range of 200?
For example if 1-30, and 32-50 are oc
Hi,
is ther a way to pass a password to the pg_dump command to avoid being
prompted for it.
I want to execute the dump from a perl or shell script and dont want to
open accees for the user in the pg_hba.conf
I tried
PGUSER=userid PGPASSWD=passwd pg_dump -Fc -f dump.db mydb;
Thanks
Alex
imestamp with time zone.
anyway, how can I make a timestamp data type be outputted without the time
zone?
I just want the so common "-MM-DD HH:MM:SS" format, not a "-MM-DD
HH:MM:SS-time-stamp_offset"
I expect to get this result *WITHOUT* rewritting existing queries.
Any o
a strict
'-MM-DD HH:MM:SS'
can postgresql do this at all (once again, without using functions or
altering the query)
Thanks in advance, Alex
---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister comma
--
1 | 4 | (1,"This is Image A",f,f)
1 | 4 | (2,"This is Image B",f,f)
1 | 4 | (3,"This is Image C",f,t)
1 | 4 | (4,"This is Image D",t,f)
Any help or suggestion on this topic is highly appreciated.
Thanks
Alex
could be greatly
appreciated.
Thanks for the assistance,
Alex
signature.asc
Description: Message signed with OpenPGP using GPGMail
could be greatly
appreciated.
Thanks,
Alex
signature.asc
Description: Message signed with OpenPGP using GPGMail
significant
enough to warrant looking into it.
These are dedicated servers which means fill replication is not a problem.
I will look into BDR. Seems like another advantage if we can do with 9.4.
Thanks,
Alex
> On Apr 29, 2015, at 1:01 PM, William Dunn wrote:
>
> The streaming replicat
<https://github.com/smbambling/PGSQL_HA_CLUSTER/wiki/Building-A-Highly-Available-Multi-Node-PostgreSQL-Cluster>
Thanks,
Alex
> On Apr 29, 2015, at 2:50 PM, Alex Gregory wrote:
>
> Thank for for the valuable feedback everyone. Much appreciated.
>
> As I look at the Jabber in
came across this
matrix with some good information to go from:
https://wiki.postgresql.org/wiki/Replication,_Clustering,_and_Connection_Pooling#Features_in_the_Core_of_PostgreSQL
Thanks,
Alex
> On Apr 30, 2015, at 6:03 PM, Fabio Ugo Venchiarutti wrote:
>
> Point taken. William
Hello,
I have a csv string in a text field that is unsorted and contains
duplicates.
Is there a simple way to remove these and sort the string.
E.g
2,18,20,23,1,27,1,2,8,16,17,18,20,22,23,27
i tried string to array and unique but that did not work...
Any suggestions on how to do this without wri
Hi Danish, yes thats the one I was looking for. Thanks a lot!!!
On Tue, Jul 28, 2015 at 1:32 AM, dinesh kumar
wrote:
>
>
> On Mon, Jul 27, 2015 at 12:57 PM, dinesh kumar
> wrote:
>
>> On Mon, Jul 27, 2015 at 12:53 PM, Alex Magnum
>> wrote:
>>
>>> He
ould help me out if that is actually possible?
Thanks in advance
Alex
On Fri, Jul 31, 2015 at 6:07 AM, Alex Magnum wrote:
> Hi,
>
> I am trying to update a tsvector field through a plperl trigger.
>
> $_TD->{new}{text_search} = to_tsvector('pg_catalog.english', 'text1
> text2');
>
>
You need to wrap that into
On Fri, Jul 31, 2015 at 7:15 PM, Alex Hunsaker wrote:
>
>
>
> $_TD->{new}{text_search} =
> spi_exec_query("to_tsvector('pg_catalog.english', ". quote_literal('text1
> text2') .";")->{rows}[0]{to_tsvector};
>
>
Err that
| 101.70037
(5 rows)
Any suggestion is highly appreciated.
Thanks
Alex
results returned for the
current page.
Any one having an idea how to solve that?
Thanks
Alex
on this
Alex
Hello,
I am trying to extract ip addresses from golite by joining two tables as
posted below.
Running the queries individually and using a limit on the golite ip db
results are back immediately 1-2ms but when using the first query it takes
2-3 seconds.
Is there a way to use a limit in the join?
Singapore |65 | 11.0
Thailand|57 | 9.7
Indonesia |26 | 4.4
France |15 | 2.6
United States |14 | 2.4
India |14 | 2.4
Others |95 | 16.1
Total | 588 | 100
Thanks a lot for any suggestions
Alex
When restoring a dump like this:
pg_restore --clean --create --exit-on-error --dbname=test test.tar
these error messages got printed out:
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 21; 2615 80924 SCHEMA test test
pg_restore: [archiver
Hello,
I created a new database by
create database icare;
then quit off psql and run:
pg_restore --clean --create --exit-on-error --dbname=icare
icare-test.tar
it complains:
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_re
you fall it some issues with "file not exist" and other.
Alex Ignatov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
1 - 100 of 667 matches
Mail list logo