Comments (5)
I've got an error with the repro.
db1=# select * from xxx(3) as x(x int);
ERROR: invalid memory alloc request size 136899977152
We need to fix it anyway.
Original comment by [email protected]
on 31 Jan 2012 at 10:23
from plv8.
I think I've fixed it with ffc7b31e47482c31ffbf956007ff470f79c20732.
Please make sure it's what you expected.
Original comment by [email protected]
on 14 Apr 2012 at 10:07
from plv8.
Yes, it's better, but not quite what we need yet. If the expected names don't
match the actual field names, then an error should be thrown. Here's what
plperl does:
andrew=# create or replace function xxx_perl(n int) returns setof record
language plperl as
$x$ my $n = shift; for (my $i=0; $i<$n; $i++) { return_next({"n" => $i*2}) }; $x$;
CREATE FUNCTION
andrew=# select * from xxx_perl(3) as x(x int);
ERROR: Perl hash contains nonexistent column "n" at line 1.
CONTEXT: PL/Perl function "xxx_perl"
andrew=#
Original comment by [email protected]
on 23 Apr 2012 at 7:13
from plv8.
Partial fix committed. Now the number of sattributes is checked. Still to do is
the name comparisons - the code is all there apart from the actual comparison.
We'll also need some regression tests for this.
Original comment by [email protected]
on 5 Jul 2012 at 2:20
from plv8.
Fix completed, and regression tests added.
Original comment by [email protected]
on 5 Jul 2012 at 4:10
- Changed state: Fixed
from plv8.
Related Issues (20)
- simple variables in template literals HOT 2
- Compatibility with Postgres 16 HOT 2
- Build error plv8 - using the `make` command HOT 8
- Upgrade from 2.3.12 to 2.3.15 failed in Postgresql v11.18 HOT 1
- Excited to Start working with 3.2alpha Branch HOT 2
- Invalid Discord link? HOT 2
- r3.2 Rocks HOT 2
- Many warnings when building v3.2.0 HOT 2
- /usr/bin/ld: cannot find -lv8_base_with_compiler: No such file or directory HOT 4
- Support for pg16 HOT 4
- plv8_info() causes segmentation fault HOT 2
- Unable to access transition tables declared in trigger HOT 1
- add functions setTimeout and setInterval HOT 11
- Async function call in trigger HOT 4
- Use of Promise HOT 2
- PGXN Build Fails
- undefined symbol: _ZTIN2v84base6ThreadE HOT 11
- Getting Error '-fexcess-precision=standard' is not supported when trying to compile PLV8 with EDB16 HOT 1
- Can't get access to things defined using start_proc HOT 9
- Build guide mistakes HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plv8.