---
name: "SPI_exec"
section: "3"
platform: "linux"
package: "postgresql"
version: "18.6-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/SPI_exec"
---

# SPI\_exec(3)

execute a read/write command

## NAME

SPI\_exec - execute a read/write command

## SYNOPSIS

```
int SPI_exec(const char * command, long count)
```

## DESCRIPTION

**SPI\_exec** is the same as **SPI\_execute**, with the latter's *read\_only* parameter always taken as false.

## ARGUMENTS

const char \* *command*

string containing command to execute

long *count*

maximum number of rows to return, or 0 for no limit

## RETURN VALUE

See **SPI\_execute**.
