Postgres: use TEXT everywhere

This commit is contained in:
GroovieGermanikus 2023-12-22 11:51:59 +01:00
parent c2b8777376
commit 29b1620741
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
2 changed files with 8 additions and 9 deletions

View File

@ -121,8 +121,7 @@ VACUUM FULL banking_stage_results_2.blocks;
CLUSTER banking_stage_results_2.transaction_slot using idx_transaction_slot_timestamp;
VACUUM FULL banking_stage_results_2.transaction_slot;
ALTER TABLE banking_stage_results_2.transactions ALTER COLUMN signature TYPE varchar(88);
ALTER TABLE banking_stage_results_2.accounts ALTER COLUMN account_key TYPE varchar(44);
ALTER TABLE banking_stage_results_2.transactions ALTER COLUMN signature TYPE TEXT;
CLUSTER banking_stage_results_2.accounts_map_transaction using accounts_map_transaction_pkey;

View File

@ -134,7 +134,7 @@ impl PostgresSession {
format!(
r#"
CREATE TEMP TABLE {}(
signature char(88)
signature TEXT
);
"#,
temp_table
@ -184,7 +184,7 @@ impl PostgresSession {
.execute(
format!(
"CREATE TEMP TABLE {}(
key char(44)
key TEXT
);",
temp_table
)
@ -231,7 +231,7 @@ impl PostgresSession {
.execute(
format!(
"CREATE TEMP TABLE {}(
sig char(88),
sig TEXT,
slot BIGINT,
error_code INT,
count INT,
@ -307,8 +307,8 @@ impl PostgresSession {
.execute(
format!(
"CREATE TEMP TABLE {}(
account_key char(44),
signature char(88),
account_key TEXT,
signature TEXT,
is_writable BOOL,
is_signer BOOL,
is_atl BOOL
@ -381,7 +381,7 @@ impl PostgresSession {
.execute(
format!(
"CREATE TEMP TABLE {}(
signature char(88),
signature TEXT,
processed_slot BIGINT,
is_successful BOOL,
cu_requested BIGINT,
@ -470,7 +470,7 @@ impl PostgresSession {
.execute(
format!(
"CREATE TEMP TABLE {}(
account_key CHAR(44),
account_key TEXT,
slot BIGINT,
is_write_locked BOOL,
total_cu_requested BIGINT,