Re: [SQL] Question regarding modelling for time series

2012-09-05 Thread Alex Grund
reporting: 2011/08/01; value: 4 That are the series I want to get from the db. --Alex -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql

[SQL] Question regarding modelling for time series

2012-09-04 Thread Alex Grund
ts grow further, will be an RDBMS the right model for time series storage? Any ideas on what else I could use? Thank you very much! --Alex -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql

[SQL] Error: Template Id should be teh identifier of a template - help

2012-08-17 Thread Alex
Hi, All! When I execute this: UPDATE HTMLPAGE SET PAGE_URL = REPLACE(PAGE_URL, '.dot', '.html') WHERE PAGE_URL LIKE '%.dot'; I get the following error from psql. Could you tell me what is wrong or how to fix it? Thanks, Alex Failed to execute SQL : SQ

[SQL] TABLE PARTITION

2011-02-01 Thread NEVIN ALEX
Hi, I am Nevin Alex and I am using postgresql database for a year . But I have’nt used table partitions: Please help me to do it in a better way. I got it from the documentation that it is an inheritance capability and the Trigger working but for dynamic data how can I implement that

Re: [SQL] plperlu user function.

2010-05-18 Thread Alex Hunsaker
On Tue, May 18, 2010 at 15:29, David Harel wrote: > Greetings, > > I am trying to write a user function on the server to retrive image files. > Currently I wrote the following: > CREATE OR REPLACE FUNCTION perl_getfile(text) >   RETURNS OID AS I think you meant returns bytea or text or something.

Re: [SQL] pl/pgsql and error handling

2008-02-28 Thread Alex Hochberger
I do not know. It's sounds like the Oracle PL/SQL behavior is what I want. Does PostgreSQL's pl/pgsql have such a feature? It's not in the documentation anywhere. I'll check it from the office tomorrow. Alex On Feb 28, 2008, at 11:43 PM, Tom Lane wrote: Ale

[SQL] pl/pgsql and error handling

2008-02-28 Thread Alex Hochberger
ot; or whatever psql shows. Is that possible to obtain in plpgsql? I've done extensive plpgsql programming before, but this is the first time I need it to validate the external data in question. Alex ---(end of broadcast)--- TIP 1: if pos

[SQL] How to find entries missing in 2nd table?

2006-07-11 Thread alex-lists-pgsql
table control that are not listed in datapack. Thanks, Alex ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[SQL] executing external command

2006-03-16 Thread alex-lists-pgsql
Is there a way to execute an external i.e. system command from inside a pl/pgsql function? 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&#

[SQL] stored procedures for complex SELECTs

2006-01-18 Thread alex-lists-pgsql
Are there performance advantages that can be achieved by wrapping a complex SELECT into a stored procedure? Alex ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [SQL] INSERT waiting under heavy load

2006-01-06 Thread alex-lists-pgsql
: if the problem is caused by the the acquire lock->modify column->release lock on the table 1, then why does it increase significantly increase as the number of entries in the table 3 grows? The simulation maintains pretty much constant rate of new requests coming to table 3. Alex -

[SQL] INSERT waiting under heavy load

2006-01-06 Thread alex-lists-pgsql
ly reference to appropriate table (1) row and counter value make it better? Thanks, Alex ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PERFORM] [SQL] OFFSET impact on Performance???

2005-01-31 Thread Alex Turner
RDBMS IMHO. Alex Turner NetEconomist On Wed, 26 Jan 2005 12:11:49 +0200, Andrei Bintintan <[EMAIL PROTECTED]> wrote: > The problems still stays open. > > The thing is that I have about 20 - 30 clients that are using that SQL query > where the offset and limit are involved. So,

Re: [PERFORM] [SQL] OFFSET impact on Performance???

2005-01-25 Thread Alex Turner
often very heavy, and the reason why one would want to use a cursor. Alex Turner NetEconomist On Thu, 20 Jan 2005 15:20:59 +, Richard Huxton wrote: > Andrei Bintintan wrote: > >> If you're using this to provide "pages" of results, could you use a > >> curs

Re: [SQL] parse error at or near "(" -- Huh???

2004-12-14 Thread Alex Beamish
On Sun, 12 Dec 2004 19:18:00 -0700, Michael Fuhr <[EMAIL PROTECTED]> wrote: > On Thu, Dec 09, 2004 at 03:19:56PM -0500, Alex Beamish wrote: > > > I'm getting a frustrating error > > > > ERROR: parser: parse error at or near "(" at character 201 &g

[SQL] parse error at or near "(" -- Huh???

2004-12-12 Thread Alex Beamish
'console_flag' field was recently added and is close-ish to the point that I think the parser is failing. And speaking of that, how I am to interpret 'character 201' -- should I collapse the SQL into it's minimal state (least number spaces) and go from that? Thanks. Alex ps Trie

Re: [SQL] PlPerl

2001-10-07 Thread Alex Pilosov
On Mon, 8 Oct 2001, Aasmund Midttun Godal wrote: > 1. Is there a plperlu? ... unsafe version of perl? In 7.2, there will be. In 7.1, you have to apply patches manually. > 2. Is it possible to select which packages the plperl should have access to? In 7.2, plperlu can do anything. plperl in eithe

Re: [SQL] temporary views

2001-10-05 Thread Alex Pilosov
he same time. Didn't someone suggest dropping saving of parsed plans with OIDs altogether, and saving the underlying query instead? The point was that parser and planner are fast enough to make it unnecessary to save plans. I don't remember what was disposition of that idea -al

Re: [SQL] outer joins strangeness

2001-09-23 Thread Alex Pilosov
On Sun, 23 Sep 2001, Stephan Szabo wrote: > On Sun, 23 Sep 2001, Alex Pilosov wrote: > > > It may be just me, or I am grossly misunderstanding syntax of outer joins, > > but I see that plans for my queries are different depending on how I place > > join conditions and so

[SQL] outer joins strangeness

2001-09-23 Thread Alex Pilosov
JOIN" syntax to join all other tables as well, otherwise, my query plans are _extremely_ slow. any hints? Or I am grossly misunderstanding outer join symantics? -alex ---(end of broadcast)--- TIP 2: you can get off all lists at once

Re: pl/sh (was Re: [SQL] calling a shell script from pl/pgsql)

2001-09-10 Thread Alex Pilosov
On Mon, 10 Sep 2001, Stephan Szabo wrote: > > On Mon, 10 Sep 2001, Alex Pilosov wrote: > > > On Mon, 10 Sep 2001, Stephan Szabo wrote: > > > > > On Mon, 10 Sep 2001, Jeff Barrett wrote: > > > > > > > How can I call a shell script from within

pl/sh (was Re: [SQL] calling a shell script from pl/pgsql)

2001-09-10 Thread Alex Pilosov
On Mon, 10 Sep 2001, Stephan Szabo wrote: > On Mon, 10 Sep 2001, Jeff Barrett wrote: > > > How can I call a shell script from within a pl/pgsql function that is called > > as from a trigger. I do not want to interact with the script I just want it > > to run. I do want the trigger to wait for th

Re: [SQL] Function returning an array

2001-08-23 Thread Alex Pilosov
time to do merge and cleanup Also included in the patch is ability to do 'select * from cursor foo'. -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

[SQL] Problem with aggregate functions and GROUP BY

2001-08-08 Thread Alex Page
he result I want. I'm completely stumped - can anyone help? Thanks in advance, Alex -- Alex Page, IT Department, Solid State Logic E-Mail: [EMAIL PROTECTED] Phone: +44 (0) 1865 842 300 Web: http://www.solid-state-logic.com ***

[SQL] RE: can we write to a flat file from Postgresql procedure

2001-07-11 Thread Alex Pilosov
Its done and committed to CVS, will be in 7.2 release. Also done is DBD::PgSPI, interface to access postgres from within your stored procedure. (www.formenos.org/PgSPI) -alex On Wed, 11 Jul 2001, Jeff Eckermann wrote: > I haven't seen anything on this list to say that pl/perlu is bein

Re: [SQL] can we write to a flat file from Postgresql procedure

2001-07-11 Thread Alex Pilosov
resql.org/~petere/plsh.html Well, as long as we all keep plugging our favorite languages, in 7.2, you can use pl/perlu ;) -alex ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail comma

Re: [SQL] Returning multiple Rows from PL/pgSQL-Function

2001-07-09 Thread Alex Pilosov
Currently, this is not possible. It will be possible in 7.2, or with a patch I'm working on... On Mon, 9 Jul 2001, Alvar Freude wrote: > Hi, > > I want to create a function (PL/pgSQL), which return multiple rows. But it > fails -- when Creating the function, I get a notice: > > NOTICE: Pro

Re: [SQL] distinguishing different database connections

2001-06-22 Thread Alex Pilosov
we do this? Please help. > > Thank you very much, > > Markus > > ---(end of broadcast)--- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to [EMAIL P

Re: [SQL] pl/Perl

2001-02-21 Thread Alex Pilosov
On Wed, 21 Feb 2001, Jeff MacDonald wrote: > 1: can you call other stored procedures from within pl/Perl No. > 2: from within a pl/Perl script , can i do a select etc.. >i'm assuming no, because you cannot use DBI.. but just wondering >if there is a way.. Not currently. > 3: installing

Re: [SQL] Help retrieving lastest record

2001-02-16 Thread Alex Pilosov
Get an SQL book. select * from basket where date=(select max(date) where fruit='Apples) and fruit='Apples'; On Thu, 15 Feb 2001, Steve Meynell wrote: > Ok what I am trying to do is select out of the database the latest > record meeting a certain criteria. > > Example: > > Number

Re: [GENERAL] Re: [SQL] Query never returns ...

2001-02-08 Thread Alex Pilosov
Um, no. You should run vacuum analyze AFTER you loaded up the data, otherwise, your table statistics will be all wrong (it'll contain 'empty table' statistics). -alex On Thu, 8 Feb 2001, Brice Ruth wrote: > Stephan, > > Here is what EXPLAIN shows: > > NOTICE:

[SQL] sorting in UNICODE table

2000-08-24 Thread Alex Guryanow
I receive strange error: the rows that begin with ascii symbols are ordered while all other - are not! Why is this happen? Regards, Alex

[SQL] using INTERSECT and UNION in IN clause

2000-08-22 Thread Alex Guryanow
'klasse' ) is executed successfully. Is it possible to use INTERSECT and UNION keywords in subqueries? Regards, Alex

[SQL] Re: Simple search question

2000-06-15 Thread Alex
then 3, and so forth. My question is, is it possible to alter the sequence last_value column, as I need the serial number to begin from 1000? Thanks, Alex

[SQL] Re: Simple search question

2000-06-12 Thread Alex
WHERE OID=oid-value, followed by pg_fetch_row(). Thanks John, and the other person that replied to my email (I know it is a bit of a stupid question, but in such an unpopulated list, I don't think there's any reason to post privately). This leads to another question. If someone adds another row during this, what will happen? Thanks, Alex

[SQL] Simple search question

2000-06-12 Thread Alex
data back again? I am thinking there must be a faster, more efficient way. Thanks, Alex