query has no destination for result data - Mailing list pgsql-general
From | Rob Sargent |
---|---|
Subject | query has no destination for result data |
Date | |
Msg-id | A8036BFA-C490-4E2E-819D-BD655CDAC364@gmail.com Whole thread Raw |
Responses |
Re: query has no destination for result data
(Tom Lane <tgl@sss.pgh.pa.us>)
Re: query has no destination for result data (Ron <ronljohnsonjr@gmail.com>) Re: query has no destination for result data (Adrian Klaver <adrian.klaver@aklaver.com>) |
List | pgsql-general |
I’m using 10.7. Does an empty result set generate this error by any chance.
select * from genome_threshold_mono('11-O3C.pbs','1-O3C_chr',1.96, 1000000);NOTICE: group id is 5eed8d65-d39a-4f72-97a3-ca391b84880dNOTICE: New threshold: 66128154-d128-4e66-bb8e-e9c9ee5ae89dNOTICE: doing chrom 11NOTICE: 2019-03-06 00:21:17.253375-07: markerset id is 9a8f7487-bd64-4d43-9adf-5ae1c6744e60(1-O3C_chr11.Loci.ld), people (5eed8d65-d39a-4f72-97a3-ca391b84880d) id is 11-O3C.pbsNOTICE: table "collected" does not exist, skippingNOTICE: table "mrkidx" does not exist, skippingNOTICE: 2019-03-06 00:21:17.295142-07: working with 28607 markersNOTICE: 2019-03-06 00:21:17.383835-07: added 3514 segments to imputed_pvalue_tERROR: query has no destination for result dataHINT: If you want to discard the results of a SELECT, use PERFORM instead.CONTEXT: PL/pgSQL function optimal_pvalue_mono(text,text,integer,double precision,integer) line 65 at SQL statementSQL statement "insert into goptsetselect * from optimal_pvalue_mono(people_name, mvec.name, mvec.chrom, conf, maxi)"PL/pgSQL function genome_pvalue_mono(text,text,double precision,integer) line 19 at SQL statementSQL statement "insert into threshold_segment(id,threshold_id, segment_id, smooth_pvalue)select uuid_generate_v4(), tid, f.segment_id, f.pvalfrom genome_pvalue_mono(pbs_name, markers_rx, conf, maxi) as f"PL/pgSQL function genome_threshold_mono(text,text,double precision,integer) line 30 at SQL statement
The code referenced at line 65 is the last line in a "for row in query” construct as follows:
Plugging in the appropriate values for an example run generates a proper dataset (~1300 rows)as far as I can tell.54 for segp in55 select s.id, s.firstmarker, s.lastmarker,56 v.ipv,57 array_length(p.probands,1) as pbs,58 s.lastmarker - s.firstmarker as mks59 from segment s60 join imputed_pvalue_t v on s.id = v.segment_id61 join probandset p on s.probandset_id = p.id62 join probandset_group_member m on p.id = m.member_id63 where s.markerset_id = mkset64 and m.group_id = pbsgid65 order by ipv, pbs, mks66 LOOP
This construct had been working until recent changes but I cannot relate the message to any deformity in the current schema or code.
Any pointers appreciated.
pgsql-general by date: