SSC-FDM-PG0003

Bytea Converted To Binary

Description

This warning is added because when the bytea data type is converted to binary the size limit is greatly reduced from 1GB to 8MB.

Code Example

Input Code:

IN -> PostgreSQL_01.sql
CREATE TABLE tbl(
    col BYTEA
);

Output Code:

OUT -> PostgreSQL_01.sql
CREATE TABLE tbl (
    col BINARY /*** SSC-FDM-PG0003 - BYTEA CONVERTED TO BINARY. SIZE LIMIT REDUCED FROM 1GB TO 8MB ***/
)
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": {  "major": 0,  "minor": 0,  "patch": "0" }, "attributes": {  "component": "postgresql",  "convertedOn": "09/17/2024" }}';

Recommendations

Last updated