Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make PIR procedure source code length configurable, have a sane default and error on invalid input #17

Closed
leto opened this Issue · 4 comments

3 participants

@leto
Owner

Currently, stored procedures are only allowed to have 1000 characters maximum, and the source is truncated to 1000 characters, instead of error-ing on procedures that are too long.

What is a reasonable default maximum? This is a compile-time knob.

@davidfetter
Collaborator

1G is the usual in PostgreSQL

@theory
Collaborator

Why have a max at all?

@theory
Collaborator

Fetter explains to me via IRC that by "1G" he means 1GB. ISTM that we should go with whatever limitation is imposed by PostgreSQL and not worry about it. Either way, 1000 characters is far, far to small.

@leto
Owner

I've created a config.h which defines a default maximimum of 64KB. Who is writing subroutines that have a billion characters? In any case, it is easily changed at compile-time.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.