Postgres JSONB is limited to 255MB, but it would be a bad idea to get anywhere close to that limit for output.
(outputBytes []byte)
| 72 | // Postgres JSONB is limited to 255MB, but it would be a bad idea to get |
| 73 | // anywhere close to that limit for output. |
| 74 | func checkOutputSize(outputBytes []byte) error { |
| 75 | if len(outputBytes) > maxOutputSizeBytes { |
| 76 | return fmt.Errorf("output is too large: %d bytes (max %d MB)", len(outputBytes), maxOutputSizeMB) |
| 77 | } |
| 78 | return nil |
| 79 | } |
no test coverage detected
searching dependent graphs…