On Tue, Jan 03, 2017 at 02:50:21PM -0500, Tom Lane wrote:
> Justin Pryzby <pry...@telsasoft.com> writes:
> > On Tue, Jan 03, 2017 at 02:32:36PM -0500, Tom Lane wrote:
> >> 2. Even better would be a stack trace for the call to errfinish,
> >> https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend
> 
> Thanks, but we need the whole call stack, or at least the first dozen or
> so levels.  "bt" in gdb would do.

#0  errfinish (dummy=0) at elog.c:414
#1  0x00000000006dd39f in exec_simple_query (query_string=0x1fc5fb0 "ALTER 
TABLE eric_umts_rnc_utrancell_metrics ALTER COLUMN PMSUMPACKETLATENCY_000 TYPE 
BIGINT USING PMSUMPACKETLATENCY_000::BIGINT;") at postgres.c:932
#2  0x00000000006dec8c in PostgresMain (argc=<value optimized out>, argv=<value 
optimized out>, dbname=0x1f65d98 "ts", username=<value optimized out>) at 
postgres.c:4070
#3  0x000000000067f2c5 in BackendRun (argc=<value optimized out>, argv=<value 
optimized out>) at postmaster.c:4270
#4  BackendStartup (argc=<value optimized out>, argv=<value optimized out>) at 
postmaster.c:3944
#5  ServerLoop (argc=<value optimized out>, argv=<value optimized out>) at 
postmaster.c:1701
#6  PostmasterMain (argc=<value optimized out>, argv=<value optimized out>) at 
postmaster.c:1309
#7  0x0000000000607658 in main (argc=3, argv=0x1f3a4f0) at main.c:228


(gdb) bt
#0  errfinish (dummy=0) at elog.c:414
#1  0x00000000005d0e30 in ExecEvalScalarVar (exprstate=<value optimized out>, 
econtext=<value optimized out>, isNull=<value optimized out>, isDone=<value 
optimized out>) at execQual.c:655
#2  0x00000000005d0c3c in ExecMakeFunctionResultNoSets (fcache=0x21f18a0, 
econtext=0x2199e80, isNull=0x21e90ee "", isDone=<value optimized out>) at 
execQual.c:2015
#3  0x000000000059d5ce in ATRewriteTable (tab=<value optimized out>, 
OIDNewHeap=<value optimized out>, lockmode=<value optimized out>) at 
tablecmds.c:4152
#4  0x00000000005a92fc in ATRewriteTables (parsetree=0x1f63b20, rel=<value 
optimized out>, cmds=<value optimized out>, recurse=<value optimized out>, 
lockmode=<value optimized out>) at tablecmds.c:3858
#5  ATController (parsetree=0x1f63b20, rel=<value optimized out>, cmds=<value 
optimized out>, recurse=<value optimized out>, lockmode=<value optimized out>) 
at tablecmds.c:3104
#6  0x00000000006e25e6 in ProcessUtilitySlow (parsetree=0x1fc6f78, 
queryString=0x1fc5fb0 "ALTER TABLE eric_umts_rnc_utrancell_metrics ALTER COLUMN 
PMSUMPACKETLATENCY_000 TYPE BIGINT USING PMSUMPACKETLATENCY_000::BIGINT;", 
    context=PROCESS_UTILITY_TOPLEVEL, params=0x0, dest=<value optimized out>, 
completionTag=0x7fff8b9d3a90 "") at utility.c:1085
#7  0x00000000006e2a70 in standard_ProcessUtility (parsetree=0x1fc6f78, 
    queryString=0x1fc5fb0 "ALTER TABLE eric_umts_rnc_utrancell_metrics ALTER 
COLUMN PMSUMPACKETLATENCY_000 TYPE BIGINT USING 
PMSUMPACKETLATENCY_000::BIGINT;", context=PROCESS_UTILITY_TOPLEVEL, params=0x0, 
dest=0x1fc72b8, 
    completionTag=0x7fff8b9d3a90 "") at utility.c:907
#8  0x00000000006df2cc in PortalRunUtility (portal=0x1fff2e0, 
utilityStmt=0x1fc6f78, isTopLevel=1 '\001', setHoldSnapshot=<value optimized 
out>, dest=0x1fc72b8, completionTag=0x7fff8b9d3a90 "") at pquery.c:1193
#9  0x00000000006e01cb in PortalRunMulti (portal=0x1fff2e0, isTopLevel=1 
'\001', setHoldSnapshot=0 '\000', dest=0x1fc72b8, altdest=0x1fc72b8, 
completionTag=0x7fff8b9d3a90 "") at pquery.c:1349
#10 0x00000000006e0934 in PortalRun (portal=0x1fff2e0, 
count=9223372036854775807, isTopLevel=1 '\001', dest=0x1fc72b8, 
altdest=0x1fc72b8, completionTag=0x7fff8b9d3a90 "") at pquery.c:815
#11 0x00000000006dd5b1 in exec_simple_query (query_string=0x1fc5fb0 "ALTER 
TABLE eric_umts_rnc_utrancell_metrics ALTER COLUMN PMSUMPACKETLATENCY_000 TYPE 
BIGINT USING PMSUMPACKETLATENCY_000::BIGINT;") at postgres.c:1094
#12 0x00000000006dec8c in PostgresMain (argc=<value optimized out>, argv=<value 
optimized out>, dbname=0x1f65d98 "ts", username=<value optimized out>) at 
postgres.c:4070
#13 0x000000000067f2c5 in BackendRun (argc=<value optimized out>, argv=<value 
optimized out>) at postmaster.c:4270
#14 BackendStartup (argc=<value optimized out>, argv=<value optimized out>) at 
postmaster.c:3944
#15 ServerLoop (argc=<value optimized out>, argv=<value optimized out>) at 
postmaster.c:1701
#16 PostmasterMain (argc=<value optimized out>, argv=<value optimized out>) at 
postmaster.c:1309
#17 0x0000000000607658 in main (argc=3, argv=0x1f3a4f0) at main.c:228

> > I'll send the rest of \d if you really want but:
> 
> Well, we don't know what we're looking for, so assuming that there's
> nothing of interest there is probably bad.

Attached

Justin

Attachment: alter-wrong-type-dplus.gz
Description: Binary data

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to